mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
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:
parent
5b6c5964b0
commit
170a964815
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user