!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
@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
@k900:0upti.meK900Well that was great16:30:34
@k900:0upti.meK900It almost finished building on the community builder16:30:50
@k900:0upti.meK900And my connection dropped16:30:53
@nasso:matrix.orgnasso 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:matrix.orgnasso 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:matrix.orgtheutzCuriously, why wouldn't you use something like Home Manager to manager per-user settings?17:46:35
@reckenrode:matrix.orgRandy EckenrodeI reference my flake by URI.17:47:14
@reckenrode:matrix.orgRandy Eckenrode So darwin-rebuild switch --flake github:reckenrode/nixos-configs. 17:47:51
@nasso:matrix.orgnasso oh i do use home-manager for that, it also lives in /etc/nix-darwin though, is that wrong??? 17:48:18
@theutz:matrix.orgtheutz * 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
@reckenrode:matrix.orgRandy 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:matrix.orgnassooh interesting17:49:09

Show newer messages


Back to Room ListRoom Version: 6