mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
cd5dc76d83
Also: - Add tests - Treewide update - Improve docs
25 lines
367 B
Bash
25 lines
367 B
Bash
source $stdenv/setup
|
|
|
|
args=
|
|
|
|
target=$out
|
|
if test -n "$dir"; then
|
|
target=$out/$dir/$name
|
|
mkdir -p $out/$dir
|
|
fi
|
|
|
|
substitutionsList=($replacements)
|
|
|
|
if [[ -v substitutions ]]; then
|
|
eval "substitutionsList+=($substitutions)"
|
|
fi
|
|
|
|
substitute $src $target "${substitutionsList[@]}"
|
|
|
|
if test -n "$isExecutable"; then
|
|
chmod +x $target
|
|
fi
|
|
|
|
eval "$postInstall"
|
|
|