summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorEelco Dolstra2006-02-06 12:29:36 +0000
committerEelco Dolstra2006-02-06 12:29:36 +0000
commit4d91fa9c45cd344cdc8ff8e10ac4a092305227ab (patch)
tree6342c99c0f7d58a81c0a033060534d478c8c06ab /pkgs
parent5472ca11e8efe22ffe380e1e78aa9aaae4498b6b (diff)
* Quick hack to get bzip2 to build on Darwin.
svn path=/nixpkgs/trunk/; revision=4737
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/compression/bzip2/builder-darwin.sh11
-rw-r--r--pkgs/tools/compression/bzip2/default.nix2
2 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/tools/compression/bzip2/builder-darwin.sh b/pkgs/tools/compression/bzip2/builder-darwin.sh
new file mode 100644
index 000000000000..8d666c925e7b
--- /dev/null
+++ b/pkgs/tools/compression/bzip2/builder-darwin.sh
@@ -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
diff --git a/pkgs/tools/compression/bzip2/default.nix b/pkgs/tools/compression/bzip2/default.nix
index eb4935684b25..ec4ceea1795e 100644
--- a/pkgs/tools/compression/bzip2/default.nix
+++ b/pkgs/tools/compression/bzip2/default.nix
@@ -2,7 +2,7 @@
 
 stdenv.mkDerivation {
   name = "bzip2-1.0.3";
-  builder = ./builder.sh;
+  builder = if stdenv.system == "powerpc-darwin" then ./builder-darwin.sh else ./builder.sh;
   src = fetchurl {
     url = http://nix.cs.uu.nl/dist/tarballs/bzip2-1.0.3.tar.gz;
     md5 = "8a716bebecb6e647d2e8a29ea5d8447f";