* Move the substitution functions into stdenv (not merged yet).

* 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
This commit is contained in:
Eelco Dolstra
2006-12-10 22:24:42 +00:00
parent cca1ba0372
commit 7dfbf0eba7
7 changed files with 770 additions and 37 deletions
@@ -0,0 +1,9 @@
{stdenv}:
args:
stdenv.mkDerivation ({
name = if args ? name then args.name else baseNameOf (toString args.src);
builder = ./substitute-all.sh;
inherit (args) src;
} // args)