25 , gobject-introspection
33 stdenv.mkDerivation rec {
37 outputs = [ "out" "dev" ];
39 src = fetchFromGitHub {
43 sha256 = "sha256-ttNlhWD0Ran4d3QvZ+PxbFbSUGMkfrRm+hJdQxIDJvM=";
70 ] ++ lib.optional withQt5 qtbase;
73 # Adds option to disable writing dmrc files
75 url = "https://src.fedoraproject.org/rpms/lightdm/raw/4cf0d2bed8d1c68970b0322ccd5dbbbb7a0b12bc/f/lightdm-1.25.1-disable_dmrc.patch";
76 sha256 = "06f7iabagrsiws2l75sx2jyljknr9js7ydn151p3qfi104d1541n";
79 # Hardcode plymouth to fix transitions.
80 # For some reason it can't find `plymouth`
81 # even when it's in PATH in environment.systemPackages.
83 src = ./fix-paths.patch;
84 plymouth = "${plymouth}/bin/plymouth";
88 dontWrapQtApps = true;
90 preConfigure = "NOCONFIGURE=1 ./autogen.sh";
93 "--localstatedir=/var"
97 ] ++ lib.optional withQt5 "--enable-liblightdm-qt5";
100 "sysconfdir=${placeholder "out"}/etc"
101 "localstatedir=\${TMPDIR}"
105 substituteInPlace autogen.sh \
106 --replace "which" "${buildPackages.busybox}/bin/which"
108 substituteInPlace src/shared-data-manager.c \
109 --replace /bin/rm ${busybox}/bin/rm
113 rm -rf $out/etc/apparmor.d $out/etc/init $out/etc/pam.d
117 updateScript = nix-update-script { };
122 homepage = "https://github.com/canonical/lightdm";
123 description = "A cross-desktop display manager";
124 platforms = platforms.linux;
125 license = licenses.gpl3;
126 maintainers = with maintainers; [ ] ++ teams.pantheon.members;