!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
14 Sep 2025
@n8henrie:matrix.orgn8henrie The Killed: 9 also made me wonder about codesigning? 18:49:38
@emilazy:matrix.orgemily ca-derivations is broken-by-design on aarch64-darwin 18:49:38
@emilazy:matrix.orgemilyit rewrites paths with no knowledge of ad-hoc signatures18:49:54
@n8henrie:matrix.orgn8henrie Sorry but I'm not knowledgeable enough to connect the dots -- it sounds like there's a fundamental difference with how nix works on darwin that requires ad-hoc signatures? Is the nix daemon essentially doing a codesign -s- on all its binaries (to allow them to run without signing / notarization)? Or did I misunderstand the signatures reference? 18:53:13
@emilazy:matrix.orgemilyall binaries have ad-hoc signatures. the linker puts them there18:55:35
@emilazy:matrix.orgemilyan ad-hoc signature is just an SHA-256 hash18:55:38
@emilazy:matrix.orgemily ca-derivations involves building things to a fake path and then rewriting them to the content-addressed path 18:55:55
@emilazy:matrix.orgemilywhich involves replacing self-references to the store path in binaries18:56:00
@emilazy:matrix.orgemilywhich invalidates the ad-hoc signature hash18:56:04
@emilazy:matrix.orgemilywhich produces broken binaries18:56:08
@emilazy:matrix.orgemily this is also why --rebuild doesn't work right on macOS, but with ca-derivations everything with a self-reference breaks 18:56:21
@emilazy:matrix.orgemily the part of Nix that implements ca-derivations rewriting has no idea about Mach-O or ad-hoc signatures or anything like that 18:56:43
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/NixOS/nix/issues/606518:57:32
@emilazy:matrix.orgemilyheh, thufschmitt's proposal for a relinking derivation18:58:38
@emilazy:matrix.orgemily I guess if we do stubs in Nixpkgs we get ca-derivations for AArch64 for free… 18:58:46
@n8henrie:matrix.orgn8henrieThanks for the thorough explanation and issue link!19:00:06
@reckenrode:matrix.orgRandy EckenrodeStubs?19:00:06
@emilazy:matrix.orgemily split .tbd/.so stub outputs of dynamic libraries that executables link against, with separate derivations to relink those against the actual final dynamic libraries 19:04:33
@emilazy:matrix.orgemily for rebuild avoidance in combination with ca-derivations or similar 19:04:41
@emilazy:matrix.orgemilyotherwise you don't actually avoid rebuilds from e.g. library security patches that don't affect ABI/headers19:05:04
15 Sep 2025
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeIf I want to pack https://github.com/microsoft/vscode Which directory should it be? pkgs/by-name or pkgs/applications/editors/vscode? and which name should it be? code-oss or vscode-oss?11:49:27
@reckenrode:matrix.orgRandy EckenrodeNew packages are supposed to go in the by-name hierarchy.11:50:15
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoehttps://github.com/microsoft/vscode/blob/main/package.json#L2 "name": "code-oss-dev",11:50:32
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeSo this should be code-oss ?11:50:44
@reckenrode:matrix.orgRandy EckenrodeWhat is the difference between this and vscodium?11:50:49
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoevscodium removed tracking and other related codes11:51:34
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe(telemetry, gallery, logo11:52:02
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoecode-oss have some Microsoft customizations11:52:32
@k900:0upti.meK900 We already have vscode 11:52:51
@k900:0upti.meK900 AFAIK the vscode repo as is is not fully redistributable 11:53:02

Show newer messages


Back to Room ListRoom Version: 6