2011-07-13 18:54:27 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, dbus_glib, zlib, pam, glib
|
|
|
|
, libX11, polkit, expat }:
|
2009-03-11 16:31:01 +00:00
|
|
|
|
2009-08-13 07:55:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-07-13 18:54:27 +00:00
|
|
|
name = "ConsoleKit-0.4.5";
|
2009-08-13 07:55:11 +00:00
|
|
|
|
2009-03-11 16:31:01 +00:00
|
|
|
src = fetchurl {
|
2011-06-07 21:49:11 +00:00
|
|
|
url = "http://www.freedesktop.org/software/ConsoleKit/dist/${name}.tar.bz2";
|
2011-07-13 18:54:27 +00:00
|
|
|
sha256 = "0f4wddl27cmi19mcw25l94z57hsd91z88gzczig153h7ac67iq23";
|
2009-03-11 16:31:01 +00:00
|
|
|
};
|
2009-08-13 07:55:11 +00:00
|
|
|
|
2010-05-15 09:54:50 +00:00
|
|
|
buildInputs = [ pkgconfig dbus_glib zlib pam glib libX11 polkit expat ];
|
2009-08-13 07:55:11 +00:00
|
|
|
|
2010-05-18 16:40:40 +00:00
|
|
|
# For console-kit to get the rpath to libgcc_s, needed for pthread_cancel to work
|
|
|
|
NIX_LDFLAGS = "-lgcc_s";
|
|
|
|
|
2009-08-17 00:36:48 +00: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 07:55:11 +00: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
|
|
|
}
|