about summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorArmijn Hemel <armijn@gpl-violations.org>2005-12-23 21:43:04 +0000
committerArmijn Hemel <armijn@gpl-violations.org>2005-12-23 21:43:04 +0000
commit136c43448d18abcc42ceb4d9e3888955ce1eccdf (patch)
treeba9b95bef22ee4ec8ecfb6c104c9bbf196813d67 /pkgs/shells
parentae11cdc41e43e435a2c01ea6496f742cdfe997be (diff)
add a static version of bash. This comes in handy for NixOS (installer disk) and the static tools we use to bootstrap Nix on for example NixOS. Can I say NixOS one more time? NixOS.
svn path=/nixpkgs/trunk/; revision=4423
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/bash-static/builder.sh5
-rw-r--r--pkgs/shells/bash-static/default.nix11
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/shells/bash-static/builder.sh b/pkgs/shells/bash-static/builder.sh
new file mode 100644
index 0000000000000..ee482ced23bf4
--- /dev/null
+++ b/pkgs/shells/bash-static/builder.sh
@@ -0,0 +1,5 @@
+source $stdenv/setup
+genericBuild
+cd $out/bin
+strip $out/bin/bash
+ln -s bash sh
diff --git a/pkgs/shells/bash-static/default.nix b/pkgs/shells/bash-static/default.nix
new file mode 100644
index 0000000000000..0c71f0589633b
--- /dev/null
+++ b/pkgs/shells/bash-static/default.nix
@@ -0,0 +1,11 @@
+{stdenv, fetchurl}:
+
+stdenv.mkDerivation {
+  name = "bash-3.0";
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = http://nix.cs.uu.nl/dist/tarballs/bash-3.0.tar.gz;
+    md5 = "26c4d642e29b3533d8d754995bc277b3";
+  };
+  configureFlags = "--enable-static-link --without-bash-malloc";
+}