mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
* bzip2 with dietlibc.
svn path=/nixpkgs/trunk/; revision=6767
This commit is contained in:
parent
efc2b12da5
commit
f3619824a9
@ -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
|
||||
|
@ -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=
|
@ -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];
|
||||
}
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user