2013-07-28 22:38:32 +02:00
|
|
|
{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
|
2017-12-06 13:23:30 +01:00
|
|
|
, intltool, xlibsWrapper, libxklavier, libgcrypt, libaudit, coreutils
|
2015-09-27 17:37:23 +02:00
|
|
|
, qt4 ? null
|
|
|
|
, withQt5 ? false, qtbase
|
2015-03-10 01:32:49 +01:00
|
|
|
}:
|
2013-03-26 11:42:18 +01:00
|
|
|
|
2017-04-02 11:04:32 +02:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2013-07-28 22:38:32 +02:00
|
|
|
let
|
2017-10-29 20:54:18 +01:00
|
|
|
ver_branch = "1.24";
|
|
|
|
version = "1.24.0";
|
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";
|
2017-10-29 20:54:18 +01:00
|
|
|
sha256 = "18j33bm54i8k7ncxcs69zqi4105s62n58jrydqn3ikrb71s9nl6d";
|
2013-03-26 11:42:18 +01:00
|
|
|
};
|
|
|
|
|
2017-04-02 11:04:32 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
2013-07-28 22:38:32 +02:00
|
|
|
buildInputs = [
|
2017-04-02 11:04:32 +02:00
|
|
|
pam libxcb glib libXdmcp itstool libxml2 libxklavier libgcrypt
|
2017-09-03 10:01:19 +02:00
|
|
|
qt4 libaudit
|
2017-04-02 11:04:32 +02:00
|
|
|
] ++ optional withQt5 qtbase;
|
2015-03-10 01:32:49 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
2015-09-18 08:24:48 +02:00
|
|
|
"--disable-tests"
|
2017-04-02 11:04:32 +02:00
|
|
|
] ++ optional (qt4 != null) "--enable-liblightdm-qt"
|
|
|
|
++ optional withQt5 "--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
|
|
|
|
2017-12-06 13:23:30 +01:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace src/shared-data-manager.c \
|
|
|
|
--replace /bin/rm ${coreutils}/bin/rm
|
|
|
|
'';
|
|
|
|
|
2017-04-02 11:04:32 +02:00
|
|
|
meta = {
|
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
|
|
|
}
|