gavin-bc: recreate the dc link with the default umask 022 (#559935)

This commit is contained in:
Gaétan Lepage
2026-09-05 13:53:30 +00:00
committed by GitHub

View File

@@ -19,6 +19,13 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-bIQk0HzUzL1Ju4+iDpFj1n+GKCj9a3AUAbYA3yX5TNg=";
};
# Upstream's safe-install.sh sets umask 077 before creating the dc -> bc
# symlink. Darwin records symlink permissions, making the link unreadable for
# non-root. This recreates the link with the default umask 022.
postInstall = ''
ln -sf bc $out/bin/dc
'';
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/bc";
doInstallCheck = true;