diff options
-rw-r--r-- | pkgs/shells/bash-static/builder.sh | 5 | ||||
-rw-r--r-- | pkgs/shells/bash-static/default.nix | 11 |
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"; +} |