summary refs log tree commit diff
path: root/pkgs/stdenv
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2005-06-20 15:03:52 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2005-06-20 15:03:52 +0000
commit5b15f75a13fabdc6793e0f89b8548ca5a95e820a (patch)
tree2f213988ce96d2f0659bac202c0ba0516ed4623a /pkgs/stdenv
parent2cc66184ce47ba85de1eb0dd495b6baf0442d986 (diff)
* 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
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r--pkgs/stdenv/generic/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix
index f57eebe9c7425..b25703eb9af47 100644
--- a/pkgs/stdenv/generic/default.nix
+++ b/pkgs/stdenv/generic/default.nix
@@ -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;
       });