2013-07-28 21:38:32 +01:00
|
|
|
{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
|
2017-03-11 13:52:42 +00:00
|
|
|
, intltool, xlibsWrapper, libxklavier, libgcrypt, libaudit, gcc6
|
2015-09-27 16:37:23 +01:00
|
|
|
, qt4 ? null
|
|
|
|
, withQt5 ? false, qtbase
|
2015-03-10 00:32:49 +00:00
|
|
|
}:
|
2013-03-26 10:42:18 +00:00
|
|
|
|
2013-07-28 21:38:32 +01:00
|
|
|
let
|
2016-09-16 14:54:11 +01:00
|
|
|
ver_branch = "1.19";
|
2016-10-15 02:28:18 +01:00
|
|
|
version = "1.19.5";
|
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";
|
2016-10-15 02:28:18 +01:00
|
|
|
sha256 = "0gbz8jk1ljh8rwgvldkiqma1k61sd27yh008228ahdqd5i2v1r1z";
|
2013-03-26 10:42:18 +00:00
|
|
|
};
|
|
|
|
|
2015-05-21 03:14:31 +01:00
|
|
|
patches = [ ./fix-paths.patch ];
|
|
|
|
|
2013-07-28 21:38:32 +01:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig pam libxcb glib libXdmcp itstool libxml2 intltool libxklavier libgcrypt
|
2017-03-11 13:52:42 +00:00
|
|
|
qt4 libaudit gcc6
|
2015-09-27 16:37:23 +01:00
|
|
|
] ++ stdenv.lib.optional withQt5 qtbase;
|
2015-03-10 00:32:49 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
2015-09-18 07:24:48 +01:00
|
|
|
"--disable-tests"
|
2015-03-10 00:32:49 +00:00
|
|
|
] ++ stdenv.lib.optional (qt4 != null) "--enable-liblightdm-qt"
|
2015-09-27 16:37:23 +01:00
|
|
|
++ stdenv.lib.optional withQt5 "--enable-liblightdm-qt5";
|
2013-03-26 10:42:18 +00:00
|
|
|
|
2015-04-05 06:20:28 +01:00
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
2013-03-26 10:42:18 +00:00
|
|
|
|
2015-03-10 00:32:49 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-05-29 00:23:46 +01:00
|
|
|
homepage = https://launchpad.net/lightdm;
|
2015-03-10 00:32:49 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ocharles wkennington ];
|
2013-03-26 10:42:18 +00:00
|
|
|
};
|
2013-07-28 21:38:32 +01:00
|
|
|
}
|