From 136c43448d18abcc42ceb4d9e3888955ce1eccdf Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Fri, 23 Dec 2005 21:43:04 +0000 Subject: [PATCH] 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 --- pkgs/shells/bash-static/builder.sh | 5 +++++ pkgs/shells/bash-static/default.nix | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/shells/bash-static/builder.sh create mode 100644 pkgs/shells/bash-static/default.nix diff --git a/pkgs/shells/bash-static/builder.sh b/pkgs/shells/bash-static/builder.sh new file mode 100644 index 000000000000..ee482ced23bf --- /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 000000000000..0c71f0589633 --- /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"; +}