add a statically linked bzip2. This is the last of the tools we need for a fullystatic initial stdenv...

svn path=/nixpkgs/trunk/; revision=4477
This commit is contained in:
Armijn Hemel 2006-01-01 13:34:35 +00:00
parent c2115654b9
commit dde6370c2a
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,12 @@
source $stdenv/setup
installFlags="PREFIX=$out"
postInstall=postInstall
postInstall() {
rm $out/bin/bunzip2 $out/bin/bzcat
ln -s bzip2 $out/bin/bunzip2
ln -s bzip2 $out/bin/bzcat
}
genericBuild

View File

@ -0,0 +1,12 @@
diff -ruN bzip2-1.0.3/Makefile bzip2-1.0.3.new/Makefile
--- bzip2-1.0.3/Makefile 2005-02-17 12:28:24.000000000 +0100
+++ bzip2-1.0.3.new/Makefile 2006-01-01 14:30:08.000000000 +0100
@@ -2,7 +2,7 @@
SHELL=/bin/sh
# To assist in cross-compiling
-CC=gcc
+CC=gcc -static
AR=ar
RANLIB=ranlib
LDFLAGS=

View File

@ -0,0 +1,11 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "bzip2-1.0.3";
builder = ./builder.sh;
src = fetchurl {
url = http://www.bzip.org/1.0.3/bzip2-1.0.3.tar.gz;
md5 = "8a716bebecb6e647d2e8a29ea5d8447f";
};
patches = [./bzip2-1.0.3-static.patch];
}