2018-07-27 17:37:49 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pam, pkgconfig, autoconf, automake, libtool, libxcb
|
|
|
|
, glib, libXdmcp, itstool, intltool, libxklavier, libgcrypt, audit, busybox
|
|
|
|
, polkit, accountsservice, gtk-doc, gnome3, gobjectIntrospection, vala
|
|
|
|
, withQt4 ? false, qt4
|
2015-09-27 17:37:23 +02:00
|
|
|
, 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
|
|
|
stdenv.mkDerivation rec {
|
2018-07-27 17:37:49 +02:00
|
|
|
pname = "lightdm";
|
|
|
|
version = "1.26.0";
|
2013-03-26 11:42:18 +01:00
|
|
|
|
2018-07-27 17:37:49 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CanonicalLtd";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1mhj6l025cnf2dzxnbzlk0qa9fm4gj2aw58qh5fl4ky87dp4wdyb";
|
2013-03-26 11:42:18 +01:00
|
|
|
};
|
|
|
|
|
2018-07-27 17:37:49 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
gnome3.yelp-tools
|
|
|
|
gnome3.yelp-xsl
|
|
|
|
gobjectIntrospection
|
|
|
|
gtk-doc
|
|
|
|
intltool
|
|
|
|
itstool
|
|
|
|
libtool
|
|
|
|
pkgconfig
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
2013-07-28 22:38:32 +02:00
|
|
|
buildInputs = [
|
2018-07-27 17:37:49 +02:00
|
|
|
accountsservice
|
|
|
|
audit
|
|
|
|
glib
|
|
|
|
libgcrypt
|
|
|
|
libxcb
|
|
|
|
libXdmcp
|
|
|
|
libxklavier
|
|
|
|
pam
|
|
|
|
polkit
|
|
|
|
] ++ optional withQt4 qt4
|
|
|
|
++ optional withQt5 qtbase;
|
|
|
|
|
|
|
|
|
|
|
|
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
|
2015-03-10 01:32:49 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
2015-09-18 08:24:48 +02:00
|
|
|
"--disable-tests"
|
2018-07-27 17:37:49 +02:00
|
|
|
"--disable-static"
|
|
|
|
] ++ optional withQt4 "--enable-liblightdm-qt"
|
2017-04-02 11:04:32 +02:00
|
|
|
++ 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 = ''
|
2018-07-27 17:37:49 +02:00
|
|
|
substituteInPlace autogen.sh \
|
|
|
|
--replace "which" "${busybox}/bin/which"
|
|
|
|
|
2017-12-06 13:23:30 +01:00
|
|
|
substituteInPlace src/shared-data-manager.c \
|
2018-07-27 17:37:49 +02:00
|
|
|
--replace /bin/rm ${busybox}/bin/rm
|
2017-12-06 13:23:30 +01:00
|
|
|
'';
|
|
|
|
|
2017-04-02 11:04:32 +02:00
|
|
|
meta = {
|
2018-07-27 17:37:49 +02:00
|
|
|
homepage = https://github.com/CanonicalLtd/lightdm;
|
2015-03-10 01:32:49 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
2018-07-27 17:37:49 +02:00
|
|
|
maintainers = with maintainers; [ ocharles wkennington worldofpeace ];
|
2013-03-26 11:42:18 +01:00
|
|
|
};
|
2013-07-28 22:38:32 +02:00
|
|
|
}
|