mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
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
10 lines
183 B
Nix
10 lines
183 B
Nix
{stdenv}:
|
|
|
|
args:
|
|
|
|
stdenv.mkDerivation ({
|
|
name = if args ? name then args.name else baseNameOf (toString args.src);
|
|
builder = ./substitute-all.sh;
|
|
inherit (args) src;
|
|
} // args)
|