diff options
Diffstat (limited to 'pkgs/build-support/substitute/substitute.sh')
-rw-r--r-- | pkgs/build-support/substitute/substitute.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/build-support/substitute/substitute.sh b/pkgs/build-support/substitute/substitute.sh new file mode 100644 index 0000000000000..dbac275a80ede --- /dev/null +++ b/pkgs/build-support/substitute/substitute.sh @@ -0,0 +1,18 @@ +source $stdenv/setup + +args= + +target=$out +if test -n "$dir"; then + target=$out/$dir/$name + mkdir -p $out/$dir +fi + +substitute $src $target $replacements + +if test -n "$isExecutable"; then + chmod +x $target +fi + +eval "$postInstall" + |