3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/cups/default.nix
Eelco Dolstra b5e67e699b * CUPS 1.3.10.
svn path=/nixpkgs/trunk/; revision=15472
2009-05-06 14:05:32 +00:00

39 lines
925 B
Nix

{stdenv, fetchurl, zlib, libjpeg, libpng, libtiff, pam, openssl}:
let version = "1.3.10"; in
stdenv.mkDerivation {
name = "cups-${version}";
src = fetchurl {
url = "http://ftp.easysw.com/pub/cups/${version}/cups-${version}-source.tar.bz2";
sha256 = "0rmm1dj8ha8d5c9lpdsfpfyw6l6lnkxl36xlxqdrjnm0lr2sa0cp";
};
buildInputs = [zlib libjpeg libpng libtiff pam openssl];
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
''; # */
meta = {
homepage = http://www.cups.org/;
description = "A standards-based printing system for UNIX";
};
}