* Build CUPS with dbus support, plus some purity fixes.
svn path=/nixpkgs/branches/xorg-7.5/; revision=18051
This commit is contained in:
parent
78648561c5
commit
404007aab3
@ -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
|
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 ];
|
propagatedBuildInputs = [ openssl ];
|
||||||
|
|
||||||
preConfigure = ''
|
configureFlags = "--localstatedir=/var --enable-dbus"; # --with-dbusdir
|
||||||
configureFlags="--localstatedir=/var"
|
|
||||||
'';
|
|
||||||
|
|
||||||
preBuild = ''
|
|
||||||
makeFlagsArray=(INITDIR=$out/etc/rc.d)
|
|
||||||
'';
|
|
||||||
|
|
||||||
installFlags =
|
installFlags =
|
||||||
[ # Don't try to write in /var at build time.
|
[ # Don't try to write in /var at build time.
|
||||||
"CACHEDIR=$(TMPDIR)/dummy"
|
"CACHEDIR=$(TMPDIR)/dummy"
|
||||||
"LOGDIR=$(TMPDIR)/dummy"
|
"LOGDIR=$(TMPDIR)/dummy"
|
||||||
"REQUESTS=$(TMPDIR)/dummy"
|
"REQUESTS=$(TMPDIR)/dummy"
|
||||||
"STATEDIR=$(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.
|
# Work around a Makefile bug.
|
||||||
"CUPS_PRIMARY_SYSTEM_GROUP=root"
|
"CUPS_PRIMARY_SYSTEM_GROUP=root"
|
||||||
];
|
];
|
||||||
|
@ -8474,7 +8474,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
cups = import ../misc/cups {
|
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 {
|
gutenprint = import ../misc/drivers/gutenprint {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user