24 , gobject-introspection
34 stdenv.mkDerivation rec {
38 outputs = [ "out" "dev" ];
40 src = fetchFromGitHub {
44 sha256 = "sha256-ttNlhWD0Ran4d3QvZ+PxbFbSUGMkfrRm+hJdQxIDJvM=";
71 ] ++ lib.optional withQt5 qtbase;
74 # Adds option to disable writing dmrc files
76 url = "https://src.fedoraproject.org/rpms/lightdm/raw/4cf0d2bed8d1c68970b0322ccd5dbbbb7a0b12bc/f/lightdm-1.25.1-disable_dmrc.patch";
77 sha256 = "06f7iabagrsiws2l75sx2jyljknr9js7ydn151p3qfi104d1541n";
80 # Hardcode plymouth to fix transitions.
81 # For some reason it can't find `plymouth`
82 # even when it's in PATH in environment.systemPackages.
84 src = ./fix-paths.patch;
85 plymouth = "${plymouth}/bin/plymouth";
89 dontWrapQtApps = true;
91 preConfigure = "NOCONFIGURE=1 ./autogen.sh";
94 "--localstatedir=/var"
98 ] ++ lib.optional withQt5 "--enable-liblightdm-qt5";
101 "sysconfdir=${placeholder "out"}/etc"
102 "localstatedir=\${TMPDIR}"
106 substituteInPlace autogen.sh \
107 --replace "which" "${buildPackages.busybox}/bin/which"
109 substituteInPlace src/shared-data-manager.c \
110 --replace /bin/rm ${busybox}/bin/rm
114 rm -rf $out/etc/apparmor.d $out/etc/init $out/etc/pam.d
118 updateScript = nix-update-script { };
119 tests = { inherit (nixosTests) lightdm; };
124 homepage = "https://github.com/canonical/lightdm";
125 description = "Cross-desktop display manager";
126 platforms = platforms.linux;
127 license = licenses.gpl3;
128 maintainers = with maintainers; [ ] ++ teams.pantheon.members;