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:
parent
c2115654b9
commit
dde6370c2a
12
pkgs/tools/compression/bzip2-static/builder.sh
Normal file
12
pkgs/tools/compression/bzip2-static/builder.sh
Normal 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
|
||||
|
12
pkgs/tools/compression/bzip2-static/bzip2-1.0.3-static.patch
Normal file
12
pkgs/tools/compression/bzip2-static/bzip2-1.0.3-static.patch
Normal 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=
|
11
pkgs/tools/compression/bzip2-static/default.nix
Normal file
11
pkgs/tools/compression/bzip2-static/default.nix
Normal 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];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user