* 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:
@@ -25,8 +25,9 @@ let {
|
|||||||
# stdenv and its shell.
|
# stdenv and its shell.
|
||||||
// {
|
// {
|
||||||
mkDerivation = attrs: derivation (attrs // {
|
mkDerivation = attrs: derivation (attrs // {
|
||||||
builder = shell;
|
builder = if attrs ? realBuilder then attrs.realBuilder else shell;
|
||||||
args = ["-e" (if attrs ? builder then attrs.builder else ./default-builder.sh)];
|
args = if attrs ? args then attrs.args else
|
||||||
|
["-e" (if attrs ? builder then attrs.builder else ./default-builder.sh)];
|
||||||
stdenv = body;
|
stdenv = body;
|
||||||
system = body.system;
|
system = body.system;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user