mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-18 05:39:58 +00:00
gavin-bc: recreate the dc link with the default umask 022 (#559935)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user