2013-07-28 22:38:32 +02:00
|
|
|
{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
|
2015-03-10 01:32:49 +01:00
|
|
|
, intltool, x11, libxklavier, libgcrypt
|
|
|
|
, qt4 ? null, qt5 ? null
|
|
|
|
}:
|
2013-03-26 11:42:18 +01:00
|
|
|
|
2013-07-28 22:38:32 +02:00
|
|
|
let
|
2015-05-29 01:23:46 +02:00
|
|
|
ver_branch = "1.14";
|
|
|
|
version = "1.14.2";
|
2013-07-28 22:38:32 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lightdm-${version}";
|
2013-03-26 11:42:18 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-28 22:38:32 +02:00
|
|
|
url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
|
2015-05-29 01:23:46 +02:00
|
|
|
sha256 = "18dvipdkp6hc1hysyiwpd5nwq6db3mg98rwi3am2ly3hk2bpic18";
|
2013-03-26 11:42:18 +01:00
|
|
|
};
|
|
|
|
|
2015-05-21 04:14:31 +02:00
|
|
|
patches = [ ./fix-paths.patch ];
|
|
|
|
|
2013-07-28 22:38:32 +02:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig pam libxcb glib libXdmcp itstool libxml2 intltool libxklavier libgcrypt
|
2015-05-10 13:44:50 +02:00
|
|
|
qt4
|
|
|
|
] ++ stdenv.lib.optional (qt5 != null) qt5.base;
|
2015-03-10 01:32:49 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
] ++ stdenv.lib.optional (qt4 != null) "--enable-liblightdm-qt"
|
2015-05-10 13:44:50 +02:00
|
|
|
++ stdenv.lib.optional ((qt5.base or null) != null) "--enable-liblightdm-qt5";
|
2013-03-26 11:42:18 +01:00
|
|
|
|
2015-04-05 07:20:28 +02:00
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
2013-03-26 11:42:18 +01:00
|
|
|
|
2015-03-10 01:32:49 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-05-29 01:23:46 +02:00
|
|
|
homepage = https://launchpad.net/lightdm;
|
2015-03-10 01:32:49 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ocharles wkennington ];
|
2013-03-26 11:42:18 +01:00
|
|
|
};
|
2013-07-28 22:38:32 +02:00
|
|
|
}
|