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"; +}