* Build CUPS with dbus support, plus some purity fixes.

svn path=/nixpkgs/branches/xorg-7.5/; revision=18051
This commit is contained in:
Eelco Dolstra 2009-10-30 12:33:34 +00:00
parent 78648561c5
commit 404007aab3
2 changed files with 8 additions and 10 deletions

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, zlib, libjpeg, libpng, libtiff, pam, openssl}:
{ stdenv, fetchurl, pkgconfig, zlib, libjpeg, libpng, libtiff, pam, openssl, dbus }:
let version = "1.4.1"; in
@ -17,24 +17,22 @@ stdenv.mkDerivation {
})
];
buildInputs = [ zlib libjpeg libpng libtiff pam ];
buildInputs = [ pkgconfig zlib libjpeg libpng libtiff pam dbus ];
propagatedBuildInputs = [ openssl ];
preConfigure = ''
configureFlags="--localstatedir=/var"
'';
configureFlags = "--localstatedir=/var --enable-dbus"; # --with-dbusdir
preBuild = ''
makeFlagsArray=(INITDIR=$out/etc/rc.d)
'';
installFlags =
[ # Don't try to write in /var at build time.
"CACHEDIR=$(TMPDIR)/dummy"
"LOGDIR=$(TMPDIR)/dummy"
"REQUESTS=$(TMPDIR)/dummy"
"STATEDIR=$(TMPDIR)/dummy"
# Idem for /etc.
"PAMDIR=$(out)/etc/pam.d"
"DBUSDIR=$(out)/etc/dbus-1"
"INITDIR=$(out)/etc/rc.d"
# Work around a Makefile bug.
"CUPS_PRIMARY_SYSTEM_GROUP=root"
];

View File

@ -8474,7 +8474,7 @@ let
};
cups = import ../misc/cups {
inherit fetchurl stdenv zlib libjpeg libpng libtiff pam openssl;
inherit fetchurl stdenv pkgconfig zlib libjpeg libpng libtiff pam openssl dbus;
};
gutenprint = import ../misc/drivers/gutenprint {