nixpkgs/pkgs/build-support/substitute/substitute.sh

19 lines
237 B
Bash
Raw Normal View History

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"