5298c1f4c2
under /var instead of $out/var. svn path=/nixpkgs/trunk/; revision=8533
32 lines
762 B
Nix
32 lines
762 B
Nix
{stdenv, fetchurl, zlib, libjpeg, libpng, libtiff, pam}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "cups-1.2.10";
|
|
|
|
src = fetchurl {
|
|
url = http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/1.2.10/cups-1.2.10-source.tar.bz2;
|
|
sha256 = "0dmvjl513kqbb7m4m0b22wa4xvn9avdyihr7fi3n2ly5as93n6v0";
|
|
};
|
|
|
|
buildInputs = [zlib libjpeg libpng libtiff pam];
|
|
|
|
preConfigure = "
|
|
configureFlags=\"--localstatedir=/var\"
|
|
";
|
|
|
|
preBuild = "
|
|
makeFlagsArray=(INITDIR=$out/etc/rc.d)
|
|
";
|
|
|
|
# Awful hack: CUPS' `make install' wants to write in /var, but it
|
|
# can't. So redirect it with a BUILDROOT (=DESTDIR).
|
|
preInstall = "
|
|
installFlagsArray=(BUILDROOT=$out/destdir)
|
|
";
|
|
|
|
postInstall = "
|
|
mv $out/destdir/$out/* $out
|
|
rm -rf $out/destdir
|
|
";
|
|
}
|