7dfbf0eba7
* If the environment variable buildCommand is set, then eval that instead of doing the build phases. This is used by the runCommand function in all-packages.nix to allow one-lines like foo = runCommand "foo" {} "mkdir $out; echo foo > $out/foo"; svn path=/nixpkgs/trunk/; revision=7298
15 lines
205 B
Bash
15 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
|