mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
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
This commit is contained in:
parent
ae11cdc41e
commit
136c43448d
5
pkgs/shells/bash-static/builder.sh
Normal file
5
pkgs/shells/bash-static/builder.sh
Normal file
@ -0,0 +1,5 @@
|
||||
source $stdenv/setup
|
||||
genericBuild
|
||||
cd $out/bin
|
||||
strip $out/bin/bash
|
||||
ln -s bash sh
|
11
pkgs/shells/bash-static/default.nix
Normal file
11
pkgs/shells/bash-static/default.nix
Normal file
@ -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";
|
||||
}
|
Loading…
Reference in New Issue
Block a user