* bzip2 with dietlibc.

svn path=/nixpkgs/trunk/; revision=6767
This commit is contained in:
Eelco Dolstra 2006-10-18 15:49:47 +00:00
parent efc2b12da5
commit f3619824a9
6 changed files with 5 additions and 38 deletions

View File

@ -1,12 +0,0 @@
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

@ -1,12 +0,0 @@
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

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

View File

@ -3,7 +3,8 @@
stdenv.mkDerivation {
name = "bzip2-1.0.3";
builder =
if stdenv.isDarwin then ./builder-darwin.sh
# !!! Merge these builders.
if stdenv.isDarwin || stdenv ? isDietLibC then ./builder-static.sh
else if stdenv.system == "i686-freebsd" then ./builder-freebsd.sh
else if stdenv.system == "i686-cygwin" then ./builder-cygwin.sh
else ./builder.sh;

View File

@ -203,8 +203,9 @@ rec {
inherit fetchurl stdenv;
});
bzip2Static = import ../tools/compression/bzip2-static {
inherit fetchurl stdenv;
bzip2Diet = import ../tools/compression/bzip2 {
inherit fetchurl;
stdenv = useDietLibC stdenv;
};
cabextract = import ../tools/archivers/cabextract {