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:
parent
2cc66184ce
commit
5b15f75a13
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue