3
0
Fork 0
forked from mirrors/nixpkgs

makeSetupHook: make the default name "hook" overridable

for occasional convenience while looking at drv paths,
such as in the output of nix-build and nix-diff.
This commit is contained in:
Orivej Desh 2017-12-19 01:41:31 +00:00
parent 5b6c5964b0
commit 170a964815

View file

@ -95,8 +95,8 @@ rec {
# Make a package that just contains a setup hook with the given contents.
makeSetupHook = { deps ? [], substitutions ? {} }: script:
runCommand "hook" substitutions
makeSetupHook = { name ? "hook", deps ? [], substitutions ? {} }: script:
runCommand name substitutions
(''
mkdir -p $out/nix-support
cp ${script} $out/nix-support/setup-hook