2021-01-15 06:42:41 +01:00
|
|
|
{ lib, stdenv
|
2019-10-13 01:06:04 +02:00
|
|
|
, fetchFromGitHub
|
2020-07-29 18:33:39 +02:00
|
|
|
, nix-update-script
|
2019-10-13 01:06:04 +02:00
|
|
|
, substituteAll
|
|
|
|
, plymouth
|
|
|
|
, pam
|
2021-01-17 03:09:27 +01:00
|
|
|
, pkg-config
|
2019-10-13 01:06:04 +02:00
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, libxcb
|
|
|
|
, glib
|
|
|
|
, libXdmcp
|
|
|
|
, itstool
|
|
|
|
, intltool
|
|
|
|
, libxklavier
|
|
|
|
, libgcrypt
|
|
|
|
, audit
|
|
|
|
, busybox
|
|
|
|
, polkit
|
|
|
|
, accountsservice
|
|
|
|
, gtk-doc
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2019-10-13 01:06:04 +02:00
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, fetchpatch
|
|
|
|
, withQt4 ? false
|
|
|
|
, qt4
|
|
|
|
, withQt5 ? false
|
|
|
|
, qtbase
|
2019-11-20 04:30:05 +01:00
|
|
|
, yelp-tools
|
2015-03-10 01:32:49 +01:00
|
|
|
}:
|
2013-03-26 11:42:18 +01:00
|
|
|
|
2021-01-15 06:42:41 +01:00
|
|
|
with lib;
|
2017-04-02 11:04:32 +02:00
|
|
|
|
2013-07-28 22:38:32 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-07-27 17:37:49 +02:00
|
|
|
pname = "lightdm";
|
2019-05-17 12:23:31 +02:00
|
|
|
version = "1.30.0";
|
2013-03-26 11:42:18 +01:00
|
|
|
|
2018-08-31 00:22:43 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2018-07-27 17:37:49 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CanonicalLtd";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-05-17 12:23:31 +02:00
|
|
|
sha256 = "0i1yygmjbkdjnqdl9jn8zsa1mfs2l19qc4k2capd8q1ndhnjm2dx";
|
2013-03-26 11:42:18 +01:00
|
|
|
};
|
|
|
|
|
2018-07-27 17:37:49 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
2019-11-20 04:30:05 +01:00
|
|
|
yelp-tools
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.yelp-xsl
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection
|
2018-07-27 17:37:49 +02:00
|
|
|
gtk-doc
|
|
|
|
intltool
|
|
|
|
itstool
|
|
|
|
libtool
|
2021-01-17 03:09:27 +01:00
|
|
|
pkg-config
|
2018-07-27 17:37:49 +02:00
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
2013-07-28 22:38:32 +02:00
|
|
|
buildInputs = [
|
2018-07-27 17:37:49 +02:00
|
|
|
accountsservice
|
|
|
|
audit
|
|
|
|
glib
|
2019-03-19 07:23:18 +01:00
|
|
|
libXdmcp
|
2018-07-27 17:37:49 +02:00
|
|
|
libgcrypt
|
|
|
|
libxcb
|
|
|
|
libxklavier
|
|
|
|
pam
|
|
|
|
polkit
|
|
|
|
] ++ optional withQt4 qt4
|
|
|
|
++ optional withQt5 qtbase;
|
|
|
|
|
2019-03-11 06:09:50 +01: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";
|
|
|
|
})
|
2019-10-13 01:06:04 +02:00
|
|
|
|
2019-09-16 04:49:11 +02:00
|
|
|
# Don't use etc/dbus-1/system.d
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/canonical/lightdm/commit/a99376f5f51aa147aaf81287d7ce70db76022c47.patch";
|
|
|
|
sha256 = "1zyx1qqajrmqcf9hbsapd39gmdanswd9l78rq7q6rdy4692il3yn";
|
|
|
|
})
|
2019-10-13 01:06:04 +02:00
|
|
|
|
2019-12-12 14:00:26 +01:00
|
|
|
# https://github.com/canonical/lightdm/pull/104
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/canonical/lightdm/commit/03f218981733e50d810767f9d04e42ee156f7feb.patch";
|
|
|
|
sha256 = "07w18m2gpk29z6ym4y3lzsmg5dk3ffn39sq6lac26ap7narf4ma7";
|
|
|
|
})
|
|
|
|
|
2019-10-13 01:06:04 +02:00
|
|
|
# Hardcode plymouth to fix transitions.
|
|
|
|
# For some reason it can't find `plymouth`
|
|
|
|
# even when it's in PATH in environment.systemPackages.
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
plymouth = "${plymouth}/bin/plymouth";
|
|
|
|
})
|
2019-03-11 06:09:50 +01:00
|
|
|
];
|
2018-07-27 17:37:49 +02:00
|
|
|
|
2021-01-12 12:50:23 +01:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2018-07-27 17:37:49 +02:00
|
|
|
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"
|
2019-03-11 06:09:50 +01:00
|
|
|
"--disable-dmrc"
|
2018-07-27 17:37:49 +02:00
|
|
|
] ++ 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 = [
|
2019-09-03 18:38:57 +02:00
|
|
|
"sysconfdir=${placeholder "out"}/etc"
|
2015-04-05 07:20:28 +02:00
|
|
|
"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
|
|
|
'';
|
|
|
|
|
2019-10-13 01:56:40 +02:00
|
|
|
postInstall = ''
|
|
|
|
rm -rf $out/etc/apparmor.d $out/etc/init $out/etc/pam.d
|
|
|
|
'';
|
|
|
|
|
2020-07-29 18:33:39 +02:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2017-04-02 11:04:32 +02:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/CanonicalLtd/lightdm";
|
2019-03-11 06:09:50 +01:00
|
|
|
description = "A cross-desktop display manager";
|
2015-03-10 01:32:49 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
2021-08-02 02:46:24 +02:00
|
|
|
maintainers = with maintainers; [ ] ++ teams.pantheon.members;
|
2013-03-26 11:42:18 +01:00
|
|
|
};
|
2013-07-28 22:38:32 +02:00
|
|
|
}
|