| 26 Mar 2026 |
WeetHet | https://github.com/qt/qtdeclarative/commit/a7084abd9778b955d80e7419e82f6f7b92f7978d
I'm pretty sure you can just add the inverse of this patch | 15:23:18 |
WeetHet | Since darwin.sigtool doesn't support --remove-signature | 15:25:15 |
K900 | Ышпр | 15:35:11 |
K900 | * Sigh | 15:35:14 |
K900 | OK let's see if this works | 15:35:19 |
WeetHet | I'm building with sigtool replaced with rcodesign and my own patch | 15:36:18 |
WeetHet | But just reverting should be simpler | 15:36:28 |
K900 | Yeeeeeah | 15:36:53 |
emily | we just need someone to write a codesign(1)-compatible CLI over the rcodesign library ideally | 15:50:17 |
emily | 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 |
emily | but yeah reverting that patch should do it | 15:50:46 |
K900 | Building with it reverted now | 15:51:03 |
WeetHet | 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 |
emily | well no point replacing if it's not even going to match the --remove-signature | 15:54:25 |
emily | does rcodesign(1) not have that functionality? | 15:54:29 |
WeetHet | I didn't find it | 15:55:06 |
WeetHet | 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 | I guess there's no replacing existing signature message with rcodesign which was the whole reason for the original patch | 15:56:26 |
K900 | Well that was great | 16:30:34 |
K900 | It almost finished building on the community builder | 16:30:50 |
K900 | And my connection dropped | 16:30:53 |
nasso | not sure if specific to nix-darwin (might be a general nixos problem) but having my config in /etc/nix-darwin is pretty annoying in a multi-user setup because i can't easily edit it from different user accounts??? mostly because git really doesn't keep g=u permissions on the files (or maybe its jj but i doubt it)
so im thinking instead of fighting git, which really isn't made for having multiple users share the same repositories, i might just keep a separate clone of my config in ~/.config/nix-darwin?? is this what people do | 17:43:46 |
nasso | not sure if specific to nix-darwin (might be a general nixos problem) but having my config in /etc/nix-darwin is pretty annoying in a multi-user setup because i can't easily edit it from different user accounts??? mostly because git really doesn't keep g=u permissions on the files (or maybe its jj but i doubt it)
so im thinking instead of fighting git, which really isn't made for having multiple users share the same repositories, i might just keep a separate clone of my config in ~/.config/nix-darwin for each user?? is this what people do | 17:43:59 |
theutz | Curiously, why wouldn't you use something like Home Manager to manager per-user settings? | 17:46:35 |
Randy Eckenrode | I reference my flake by URI. | 17:47:14 |
Randy Eckenrode | So darwin-rebuild switch --flake github:reckenrode/nixos-configs. | 17:47:51 |
nasso | oh i do use home-manager for that, it also lives in /etc/nix-darwin though, is that wrong??? | 17:48:18 |
theutz | * Curiously, why wouldn't you use something like Home Manager to manager per-user settings? Sorry, misunderstood the question. Randy is right. 🙂 | 17:48:20 |
Randy Eckenrode | The repo is the source of truth for my flake. If I need to test something, I point darwin-rebuild at my local clone. | 17:48:48 |
nasso | oh interesting | 17:49:09 |