2009-09-25 20:06:36 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, dbus, dbus_glib, expat, pam
|
2010-07-08 19:22:50 +00:00
|
|
|
, intltool, gettext, libxslt, docbook_xsl }:
|
2009-09-25 20:06:36 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "policykit-0.9";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://hal.freedesktop.org/releases/PolicyKit-0.9.tar.gz;
|
|
|
|
sha256 = "1dw05s4xqj67i3c13knzl04l8jap0kywzpav6fidpmqrximpq37l";
|
|
|
|
};
|
|
|
|
|
2009-09-26 10:43:41 +00:00
|
|
|
buildInputs =
|
2009-11-03 23:26:14 +00:00
|
|
|
[ pkgconfig glib dbus_glib pam intltool gettext libxslt ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ expat dbus.libs ];
|
2009-09-25 20:06:36 +00:00
|
|
|
|
2009-09-25 23:57:33 +00:00
|
|
|
configureFlags = "--localstatedir=/var --sysconfdir=/etc";
|
2009-09-25 20:06:36 +00:00
|
|
|
|
2009-09-25 23:57:33 +00:00
|
|
|
installFlags = "localstatedir=$(TMPDIR)/var sysconfdir=$(out)/etc"; # keep `make install' happy
|
2009-09-26 10:29:57 +00:00
|
|
|
|
|
|
|
# Read policy files from /etc/PolicyKit/policy instead of
|
|
|
|
# /usr/share/PolicyKit/policy. Using PACKAGE_DATA_DIR is hacky, but
|
|
|
|
# it works because it's only used in the C code for finding the
|
|
|
|
# policy directory.
|
|
|
|
NIX_CFLAGS_COMPILE = "-DPACKAGE_DATA_DIR=\"/etc\"";
|
2009-09-26 10:43:41 +00:00
|
|
|
|
|
|
|
# Needed to build the manpages.
|
|
|
|
XML_CATALOG_FILES = "${docbook_xsl}/xml/xsl/docbook/catalog.xml";
|
2009-09-25 20:06:36 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.freedesktop.org/wiki/Software/PolicyKit;
|
2011-07-07 18:16:03 +00:00
|
|
|
description = "A toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes (obsolete)";
|
2011-10-02 21:15:19 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-09-25 20:06:36 +00:00
|
|
|
};
|
|
|
|
}
|