2021-09-18 10:52:07 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
args=
|
|
|
|
|
|
|
|
target=$out
|
|
|
|
if test -n "$dir"; then
|
|
|
|
target=$out/$dir/$name
|
|
|
|
mkdir -p $out/$dir
|
|
|
|
fi
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
substitutionsList=($replacements)
|
|
|
|
|
|
|
|
if [[ -v substitutions ]]; then
|
|
|
|
eval "substitutionsList+=($substitutions)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
substitute $src $target "${substitutionsList[@]}"
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
if test -n "$isExecutable"; then
|
|
|
|
chmod +x $target
|
|
|
|
fi
|
|
|
|
|
|
|
|
eval "$postInstall"
|
|
|
|
|