* Merge builder-cygwin.sh.

svn path=/nixpkgs/trunk/; revision=7497
This commit is contained in:
Eelco Dolstra 2006-12-27 17:58:32 +00:00
parent 7a2c0d1793
commit f6d923febc
4 changed files with 2 additions and 30 deletions

@ -10,5 +10,3 @@
* Add gettext to glib propagatedBuildInputs? Glib's `gi18n.h' doesn't
seem to like Glibc `libintl.h'; needs the gettext one instead.
[Move from libbonoboui]
* Fix the bzip2 build generically.

@ -1,26 +0,0 @@
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

@ -18,7 +18,7 @@ fi
postInstall=postInstall
postInstall() {
rm $out/bin/bunzip2 $out/bin/bzcat
rm $out/bin/bunzip2* $out/bin/bzcat*
ln -s bzip2 $out/bin/bunzip2
ln -s bzip2 $out/bin/bzcat
}

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