* Fix bzip2 on cygwin.

svn path=/nixpkgs/trunk/; revision=7025
This commit is contained in:
Eelco Dolstra 2006-11-13 23:01:35 +00:00
parent 5474c6518f
commit 1ace3742a3
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,26 @@
source $stdenv/setup
installFlags="PREFIX=$out"
if test -n "$sharedLibrary"; then
preBuild=preBuild
preBuild() {
make -f Makefile-libbz2_so
}
preInstall=preInstall
preInstall() {
ensureDir $out/lib
mv libbz2.so* $out/lib
}
fi
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

@ -2,7 +2,7 @@
stdenv.mkDerivation {
name = "bzip2-1.0.3";
builder = ./builder.sh;
builder = if stdenv.system == "i686-cygwin" then ./builder-cygwin.sh else ./builder.sh; # !!! merge
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/bzip2-1.0.3.tar.gz;