mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
16 lines
205 B
Bash
16 lines
205 B
Bash
|
source $stdenv/setup
|
||
|
|
||
|
args=
|
||
|
|
||
|
target=$out
|
||
|
if test -n "$dir"; then
|
||
|
target=$out/$dir/$name
|
||
|
ensureDir $out/$dir
|
||
|
fi
|
||
|
|
||
|
substituteAll $src $target
|
||
|
|
||
|
if test -n "$isExecutable"; then
|
||
|
chmod +x $target
|
||
|
fi
|