mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
19 lines
237 B
Bash
19 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"
|
||
|
|