diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2004-03-28 21:17:56 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2004-03-28 21:17:56 +0000 |
commit | 5862e56f260424a626226293abfeda771e5067a9 (patch) | |
tree | ed4771cb84e580794f05cd684e6ec684b2218c60 /pkgs/stdenv/nix-linux | |
parent | 892b119c9d2c4e1bcf28a1adf24f7bd00b4a6626 (diff) |
* For simple Autotools-style packages (such as the ATerm library), the
builder may now be omitted entirely; the function `mkDerivation' will then use a default build script. svn path=/nixpkgs/trunk/; revision=868
Diffstat (limited to 'pkgs/stdenv/nix-linux')
-rw-r--r-- | pkgs/stdenv/nix-linux/default-builder.sh | 2 | ||||
-rw-r--r-- | pkgs/stdenv/nix-linux/default.nix | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/stdenv/nix-linux/default-builder.sh b/pkgs/stdenv/nix-linux/default-builder.sh new file mode 100644 index 0000000000000..9a297c67f6e81 --- /dev/null +++ b/pkgs/stdenv/nix-linux/default-builder.sh @@ -0,0 +1,2 @@ +. $stdenv/setup +genericBuild diff --git a/pkgs/stdenv/nix-linux/default.nix b/pkgs/stdenv/nix-linux/default.nix index f7230ce1b298d..9e9602d5e1f63 100644 --- a/pkgs/stdenv/nix-linux/default.nix +++ b/pkgs/stdenv/nix-linux/default.nix @@ -27,7 +27,7 @@ let { // { mkDerivation = attrs: derivation (attrs // { builder = pkgs.bash ~ /bin/sh; - args = ["-e" attrs.builder]; + args = ["-e" (if attrs ? builder then attrs.builder else ./default-builder.sh)]; stdenv = body; system = body.system; }); |