2011-08-15 15:47:18 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, dbus_glib, zlib, pam, glib,
|
|
|
|
libX11, polkit, expat }:
|
2009-03-11 16:31:01 +00:00
|
|
|
|
2009-08-13 08:55:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-08-15 15:47:18 +01:00
|
|
|
name = "consolekit-0.4.1";
|
2009-08-13 08:55:11 +01:00
|
|
|
|
2009-03-11 16:31:01 +00:00
|
|
|
src = fetchurl {
|
2011-08-15 15:47:18 +01:00
|
|
|
url = http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-0.4.1.tar.bz2;
|
|
|
|
sha256 = "0gj0airrgyi14a06w3d4407g62bs5a1cam2h64s50x3d2k3ascph";
|
2009-03-11 16:31:01 +00:00
|
|
|
};
|
2009-08-13 08:55:11 +01:00
|
|
|
|
2010-05-15 10:54:50 +01:00
|
|
|
buildInputs = [ pkgconfig dbus_glib zlib pam glib libX11 polkit expat ];
|
2011-08-15 15:47:18 +01:00
|
|
|
patches = [ ./0001-Don-t-daemonize-when-activated.patch
|
|
|
|
./0002-Don-t-take-bus-name-until-ready.patch ];
|
2009-08-13 08:55:11 +01:00
|
|
|
|
2010-05-18 17:40:40 +01:00
|
|
|
# For console-kit to get the rpath to libgcc_s, needed for pthread_cancel to work
|
|
|
|
NIX_LDFLAGS = "-lgcc_s";
|
|
|
|
|
2009-08-17 01:36:48 +01:00
|
|
|
configureFlags = "--enable-pam-module --with-pam-module-dir=$(out)/lib/security --localstatedir=/var --sysconfdir=/etc";
|
|
|
|
|
|
|
|
installFlags = "sysconfdir=$(out)/etc DBUS_SYS_DIR=$(out)/etc/dbus-1/system.d"; # keep `make install' happy
|
|
|
|
|
2009-08-13 08:55:11 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.freedesktop.org/wiki/Software/ConsoleKit;
|
|
|
|
description = "A framework for defining and tracking users, login sessions, and seats";
|
|
|
|
};
|
2009-03-11 16:31:01 +00:00
|
|
|
}
|