mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
* 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
|
||||
|
||||
@ -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"
|
||||
];
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user