summary refs log tree commit diff
path: root/pkgs/misc/busybox/default.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-21 17:51:40 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-21 17:51:40 +0000
commit1a22e9761d34254d88a12b3290be7b5843bf131f (patch)
tree436e704ee5e796f57f6d8428aa1c63153e6d822d /pkgs/misc/busybox/default.nix
parent3724758a969db7d680fcea6833c4db7283a1ecc5 (diff)
downloadnixpkgs-1a22e9761d34254d88a12b3290be7b5843bf131f.tar
nixpkgs-1a22e9761d34254d88a12b3290be7b5843bf131f.tar.gz
nixpkgs-1a22e9761d34254d88a12b3290be7b5843bf131f.tar.bz2
nixpkgs-1a22e9761d34254d88a12b3290be7b5843bf131f.tar.lz
nixpkgs-1a22e9761d34254d88a12b3290be7b5843bf131f.tar.xz
nixpkgs-1a22e9761d34254d88a12b3290be7b5843bf131f.tar.zst
nixpkgs-1a22e9761d34254d88a12b3290be7b5843bf131f.zip
* By default, build a dynamically linked Busybox. In the initrd we
  need Glibc anyway, so there is no point in static linking.  This
  saves about a megabyte from the initrd.

svn path=/nixpkgs/trunk/; revision=34197
Diffstat (limited to 'pkgs/misc/busybox/default.nix')
-rw-r--r--pkgs/misc/busybox/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/misc/busybox/default.nix b/pkgs/misc/busybox/default.nix
index ce42a156605..2f876c98d6b 100644
--- a/pkgs/misc/busybox/default.nix
+++ b/pkgs/misc/busybox/default.nix
@@ -30,9 +30,9 @@ let
     CONFIG_INSTALL_NO_USR y
   '';
 
-  staticConfig = (if enableStatic then ''
-      CONFIG_STATIC y
-    '' else "");
+  staticConfig = stdenv.lib.optionalString enableStatic ''
+    CONFIG_STATIC y
+  '';
 
 in
 
@@ -65,6 +65,8 @@ stdenv.mkDerivation rec {
       '' else "");
   };
 
+  enableParallelBuilding = true;
+
   meta = {
     description = "Tiny versions of common UNIX utilities in a single small executable";
     homepage = http://busybox.net/;