2018-07-27 16:37:49 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pam, pkgconfig, autoconf, automake, libtool, libxcb
|
|
|
|
, glib, libXdmcp, itstool, intltool, libxklavier, libgcrypt, audit, busybox
|
2019-03-11 05:09:50 +00:00
|
|
|
, polkit, accountsservice, gtk-doc, gnome3, gobject-introspection, vala, fetchpatch
|
2018-07-27 16:37:49 +01:00
|
|
|
, withQt4 ? false, qt4
|
2015-09-27 16:37:23 +01:00
|
|
|
, withQt5 ? false, qtbase
|
2015-03-10 00:32:49 +00:00
|
|
|
}:
|
2013-03-26 10:42:18 +00:00
|
|
|
|
2017-04-02 10:04:32 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2013-07-28 21:38:32 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-07-27 16:37:49 +01:00
|
|
|
pname = "lightdm";
|
2019-05-17 11:23:31 +01:00
|
|
|
version = "1.30.0";
|
2013-03-26 10:42:18 +00:00
|
|
|
|
2018-08-30 23:22:43 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2018-07-27 16:37:49 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CanonicalLtd";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-05-17 11:23:31 +01:00
|
|
|
sha256 = "0i1yygmjbkdjnqdl9jn8zsa1mfs2l19qc4k2capd8q1ndhnjm2dx";
|
2013-03-26 10:42:18 +00:00
|
|
|
};
|
|
|
|
|
2018-07-27 16:37:49 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
gnome3.yelp-tools
|
|
|
|
gnome3.yelp-xsl
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection
|
2018-07-27 16:37:49 +01:00
|
|
|
gtk-doc
|
|
|
|
intltool
|
|
|
|
itstool
|
|
|
|
libtool
|
|
|
|
pkgconfig
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
2013-07-28 21:38:32 +01:00
|
|
|
buildInputs = [
|
2018-07-27 16:37:49 +01:00
|
|
|
accountsservice
|
|
|
|
audit
|
|
|
|
glib
|
2019-03-19 06:23:18 +00:00
|
|
|
libXdmcp
|
2018-07-27 16:37:49 +01:00
|
|
|
libgcrypt
|
|
|
|
libxcb
|
|
|
|
libxklavier
|
|
|
|
pam
|
|
|
|
polkit
|
|
|
|
] ++ optional withQt4 qt4
|
|
|
|
++ optional withQt5 qtbase;
|
|
|
|
|
2019-03-11 05:09:50 +00:00
|
|
|
patches = [
|
|
|
|
# Adds option to disable writing dmrc files
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://src.fedoraproject.org/rpms/lightdm/raw/4cf0d2bed8d1c68970b0322ccd5dbbbb7a0b12bc/f/lightdm-1.25.1-disable_dmrc.patch";
|
|
|
|
sha256 = "06f7iabagrsiws2l75sx2jyljknr9js7ydn151p3qfi104d1541n";
|
|
|
|
})
|
|
|
|
];
|
2018-07-27 16:37:49 +01:00
|
|
|
|
|
|
|
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
|
2015-03-10 00:32:49 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
2015-09-18 07:24:48 +01:00
|
|
|
"--disable-tests"
|
2018-07-27 16:37:49 +01:00
|
|
|
"--disable-static"
|
2019-03-11 05:09:50 +00:00
|
|
|
"--disable-dmrc"
|
2018-07-27 16:37:49 +01:00
|
|
|
] ++ optional withQt4 "--enable-liblightdm-qt"
|
2017-04-02 10:04:32 +01:00
|
|
|
++ optional withQt5 "--enable-liblightdm-qt5";
|
2013-03-26 10:42:18 +00:00
|
|
|
|
2015-04-05 06:20:28 +01:00
|
|
|
installFlags = [
|
2019-03-11 05:09:50 +00:00
|
|
|
"sysconfdir=${placeholder ''out''}/etc"
|
2015-04-05 06:20:28 +01:00
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
2013-03-26 10:42:18 +00:00
|
|
|
|
2017-12-06 12:23:30 +00:00
|
|
|
prePatch = ''
|
2018-07-27 16:37:49 +01:00
|
|
|
substituteInPlace autogen.sh \
|
|
|
|
--replace "which" "${busybox}/bin/which"
|
|
|
|
|
2017-12-06 12:23:30 +00:00
|
|
|
substituteInPlace src/shared-data-manager.c \
|
2018-07-27 16:37:49 +01:00
|
|
|
--replace /bin/rm ${busybox}/bin/rm
|
2017-12-06 12:23:30 +00:00
|
|
|
'';
|
|
|
|
|
2017-04-02 10:04:32 +01:00
|
|
|
meta = {
|
2018-07-27 16:37:49 +01:00
|
|
|
homepage = https://github.com/CanonicalLtd/lightdm;
|
2019-03-11 05:09:50 +00:00
|
|
|
description = "A cross-desktop display manager";
|
2015-03-10 00:32:49 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
2019-01-26 10:01:09 +00:00
|
|
|
maintainers = with maintainers; [ ocharles worldofpeace ];
|
2013-03-26 10:42:18 +00:00
|
|
|
};
|
2013-07-28 21:38:32 +01:00
|
|
|
}
|