3
0
Fork 0
forked from mirrors/nixpkgs

* mkDerivation: accept an argument `realBuilder' (stupid name) to

override the default builder (i.e., bash).  For example,

    stdenv.mkDerivation {
      realBuilder = perl ~ "bin/perl";
      args = [ "-w" ./builder.pl ];
    }

svn path=/nixpkgs/trunk/; revision=3219
This commit is contained in:
Eelco Dolstra 2005-06-20 15:03:52 +00:00
parent 2cc66184ce
commit 5b15f75a13

View file

@ -25,8 +25,9 @@ let {
# stdenv and its shell.
// {
mkDerivation = attrs: derivation (attrs // {
builder = shell;
args = ["-e" (if attrs ? builder then attrs.builder else ./default-builder.sh)];
builder = if attrs ? realBuilder then attrs.realBuilder else shell;
args = if attrs ? args then attrs.args else
["-e" (if attrs ? builder then attrs.builder else ./default-builder.sh)];
stdenv = body;
system = body.system;
});