git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit170a96481526b398fee4da83422fcc462057c647 authorOrivej Desh <orivej@gmx.fr> dateTue 19 Dec 2017, 01:41 (9 years ago) parent5b6c596
1 file changed+2−2
pkgs/build-support/trivial-builders.nix+2−2
pkgs/build-support/trivial-builders.nix+2−2
@@ -95,8 +95,8 @@ rec {
9595
9696
9797 # Make a package that just contains a setup hook with the given contents.
98− makeSetupHook = { deps ? [], substitutions ? {} }: script:
99− runCommand "hook" substitutions
98+ makeSetupHook = { name ? "hook", deps ? [], substitutions ? {} }: script:
99+ runCommand name substitutions
100100 (''
101101 mkdir -p $out/nix-support
102102 cp ${script} $out/nix-support/setup-hook