nixpkgs-odroid-hc4/pkgs/build-support/substitute/substitute.sh
2025-12-20 09:59:59 +11:00

18 lines
237 B
Bash

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"