* Quick hack to get bzip2 to build on Darwin.
svn path=/nixpkgs/trunk/; revision=4737
This commit is contained in:
parent
5472ca11e8
commit
4d91fa9c45
11
pkgs/tools/compression/bzip2/builder-darwin.sh
Normal file
11
pkgs/tools/compression/bzip2/builder-darwin.sh
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
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
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "bzip2-1.0.3";
|
name = "bzip2-1.0.3";
|
||||||
builder = ./builder.sh;
|
builder = if stdenv.system == "powerpc-darwin" then ./builder-darwin.sh else ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://nix.cs.uu.nl/dist/tarballs/bzip2-1.0.3.tar.gz;
|
url = http://nix.cs.uu.nl/dist/tarballs/bzip2-1.0.3.tar.gz;
|
||||||
md5 = "8a716bebecb6e647d2e8a29ea5d8447f";
|
md5 = "8a716bebecb6e647d2e8a29ea5d8447f";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user