nixpkgs-suyu/pkgs/applications/display-managers/lightdm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

133 lines
2.5 KiB
Nix
Raw Normal View History

2021-01-15 06:42:41 +01:00
{ lib, stdenv
, buildPackages
2019-10-13 01:06:04 +02:00
, fetchFromGitHub
, nix-update-script
2019-10-13 01:06:04 +02:00
, substituteAll
, plymouth
, pam
, 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
, gnome
2019-10-13 01:06:04 +02:00
, gobject-introspection
, vala
, fetchpatch
, withQt5 ? false
, qtbase
2019-11-20 04:30:05 +01:00
, yelp-tools
2015-03-10 01:32:49 +01:00
}:
2021-01-15 06:42:41 +01:00
with lib;
stdenv.mkDerivation rec {
pname = "lightdm";
version = "1.32.0";
2018-08-31 00:22:43 +02:00
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "canonical";
repo = pname;
rev = version;
sha256 = "sha256-ttNlhWD0Ran4d3QvZ+PxbFbSUGMkfrRm+hJdQxIDJvM=";
};
nativeBuildInputs = [
autoconf
automake
2019-11-20 04:30:05 +01:00
yelp-tools
gnome.yelp-xsl
gobject-introspection
gtk-doc
intltool
itstool
libtool
pkg-config
vala
];
buildInputs = [
accountsservice
audit
glib
libXdmcp
libgcrypt
libxcb
libxklavier
pam
polkit
] ++ optional withQt5 qtbase;
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
# 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";
})
];
dontWrapQtApps = true;
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"
"--disable-dmrc"
] ++ optional withQt5 "--enable-liblightdm-qt5";
2015-04-05 07:20:28 +02:00
installFlags = [
"sysconfdir=${placeholder "out"}/etc"
2015-04-05 07:20:28 +02:00
"localstatedir=\${TMPDIR}"
];
prePatch = ''
substituteInPlace autogen.sh \
--replace "which" "${buildPackages.busybox}/bin/which"
substituteInPlace src/shared-data-manager.c \
--replace /bin/rm ${busybox}/bin/rm
'';
2019-10-13 01:56:40 +02:00
postInstall = ''
rm -rf $out/etc/apparmor.d $out/etc/init $out/etc/pam.d
'';
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
meta = {
homepage = "https://github.com/canonical/lightdm";
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;
};
}