!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1197 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org200 Servers

Load older messages


SenderMessageTime
26 Mar 2026
@k900:0upti.meK900Might be some weird sandbox thing?12:45:46
@emilazy:matrix.orgemilythat seems highly unlikely12:46:45
@k900:0upti.meK900That's https://github.com/NixOS/nixpkgs/pull/502680 rebased on master12:48:26
@k900:0upti.meK900If someone that actually has a Mac and/or knows what they're doing can take a look, it will be very appreciated12:48:38
@emilazy:matrix.orgemilyhave you tried just patching out the --remove-signature12:52:48
@emilazy:matrix.orgemilyif not then maybe rcodesign has a thing to do it instead. it's just a sigtool limitation12:54:55
@k900:0upti.meK900 You are saying words to me that I do not understand 12:57:12
@emilazy:matrix.orgemilyit's literally right there in the command you pasted :P13:03:37
@weethet:catgirl.cloudWeetHetWhat derivation did you build? I'll have a look but I don't want to build everything14:26:39
@k900:0upti.meK900python3Packages.pyside614:27:00
@k900:0upti.meK900But the failure is in qt6.qtdeclarative14:27:08
@k900:0upti.meK900Which is much earlier in the chain14:27:13
@weethet:catgirl.cloudWeetHethttps://github.com/qt/qtdeclarative/commit/a7084abd9778b955d80e7419e82f6f7b92f7978d I'm pretty sure you can just add the inverse of this patch15:23:18
@weethet:catgirl.cloudWeetHet Since darwin.sigtool doesn't support --remove-signature 15:25:15
@k900:0upti.meK900Ышпр15:35:11
@k900:0upti.meK900* Sigh15:35:14
@k900:0upti.meK900OK let's see if this works15:35:19
@weethet:catgirl.cloudWeetHetI'm building with sigtool replaced with rcodesign and my own patch15:36:18
@weethet:catgirl.cloudWeetHetBut just reverting should be simpler15:36:28
@k900:0upti.meK900Yeeeeeah15:36:53
@emilazy:matrix.orgemily we just need someone to write a codesign(1)-compatible CLI over the rcodesign library ideally 15:50:17
@emilazy:matrix.orgemily only problem with that is Rust in bootstrap, but I have WIP patches getting rid of the sigtool uses in the Darwin bootstrap anyway 15:50:36
@emilazy:matrix.orgemilybut yeah reverting that patch should do it15:50:46
@k900:0upti.meK900Building with it reverted now15:51:03
@weethet:catgirl.cloudWeetHet

I've built it with

postPatch = ''
  substituteInPlace tools/qmltestrunner/CMakeLists.txt \
    --replace-fail "codesign --remove-signature" "true" \
    --replace-fail "codesign --sign -" "rcodesign sign" \
    --replace-fail "--entitlements" "--entitlements-xml-path"
'';

And replacing darwin.sigtool with rcodesign

15:52:47
@emilazy:matrix.orgemily well no point replacing if it's not even going to match the --remove-signature 15:54:25
@emilazy:matrix.orgemily does rcodesign(1) not have that functionality? 15:54:29
@weethet:catgirl.cloudWeetHetI didn't find it15:55:06
@weethet:catgirl.cloudWeetHet
qtdeclarative> setting entitlements XML for main signing target from path /nix/store/0rzzw62rkc2bga3spjs73g0km36i0lda-qtbase-6.11.0/lib/cmake/Qt6/macos/test.entitlements.plist
qtdeclarative> signing /nix/store/jwixains55b2r39m9p5qics6xv7nxi43-qtdeclarative-6.11.0/.build/qtdeclarative-everywhere-src-6.11.0/build/bin/qmltestrunner in place
qtdeclarative> signing /nix/store/jwixains55b2r39m9p5qics6xv7nxi43-qtdeclarative-6.11.0/.build/qtdeclarative-everywhere-src-6.11.0/build/bin/qmltestrunner as a Mach-O binary
qtdeclarative> setting binary identifier to qmltestrunner
qtdeclarative> parsing Mach-O
qtdeclarative> writing Mach-O to /nix/store/jwixains55b2r39m9p5qics6xv7nxi43-qtdeclarative-6.11.0/.build/qtdeclarative-everywhere-src-6.11.0/build/bin/qmltestrunner
15:55:40
@weethet:catgirl.cloudWeetHet I guess there's no replacing existing signature message with rcodesign which was the whole reason for the original patch 15:56:26

Show newer messages


Back to Room ListRoom Version: 6