| 26 Mar 2026 |
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 |
nasso | thats pretty smart | 17:49:13 |
nasso | you still have a lockfile though right? | 17:49:33 |
nasso | or does it just use the lockfile from the repo without creating another one | 17:49:48 |
nasso | oh yeah | 17:49:50 |
Randy Eckenrode | I do. I have a GitHub Action that bumps it nighly. | 17:49:55 |
Randy Eckenrode | * | 17:50:02 |
nasso | okay thats cool i kinda wanna do that now | 17:50:11 |
Randy Eckenrode | Oh, sorry. The lockfile is in the repo. | 17:50:19 |
nasso | yeah and darwin-rebuild doesn't need to create any local lockfile cuz its just using the one from the repo | 17:50:45 |
nasso | holy shit i just had an idea | 17:51:40 |