2013-07-28 21:38:32 +01:00
|
|
|
{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
|
|
|
|
, intltool, x11, libxklavier, libgcrypt, dbus/*for tests*/ }:
|
2013-03-26 10:42:18 +00:00
|
|
|
|
2013-07-28 21:38:32 +01:00
|
|
|
let
|
|
|
|
ver_branch = "1.8";
|
2014-01-31 11:11:04 +00:00
|
|
|
version = "1.8.6";
|
2013-07-28 21:38:32 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lightdm-${version}";
|
2013-03-26 10:42:18 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-28 21:38:32 +01:00
|
|
|
url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
|
2014-01-31 11:11:04 +00:00
|
|
|
sha256 = "17ivc0c4dbnc0fzd581j53cn6hdav34zz2hswjzy8aczbpk605qi";
|
2013-03-26 10:42:18 +00:00
|
|
|
};
|
|
|
|
|
2013-07-28 21:38:32 +01:00
|
|
|
patches = [ ./lightdm.patch ];
|
2014-01-31 11:11:04 +00:00
|
|
|
patchFlags = "-p1";
|
2013-03-26 10:42:18 +00:00
|
|
|
|
2013-07-28 21:38:32 +01:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig pam libxcb glib libXdmcp itstool libxml2 intltool libxklavier libgcrypt
|
|
|
|
] ++ stdenv.lib.optional doCheck dbus.daemon;
|
2013-03-26 10:42:18 +00:00
|
|
|
|
2013-07-28 21:38:32 +01:00
|
|
|
configureFlags = [ "--enable-liblightdm-gobject" "--localstatedir=/var" ];
|
2013-03-26 10:42:18 +00:00
|
|
|
|
2013-07-28 21:38:32 +01:00
|
|
|
doCheck = false; # some tests fail, don't know why
|
2013-03-26 10:42:18 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://launchpad.net/lightdm;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-01-31 11:11:04 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ocharles ];
|
2013-03-26 10:42:18 +00:00
|
|
|
};
|
2013-07-28 21:38:32 +01:00
|
|
|
}
|