19 , lightdm-slick-greeter
23 stdenv.mkDerivation rec {
24 pname = "lightdm-slick-greeter";
27 src = fetchFromGitHub {
29 repo = "slick-greeter";
31 sha256 = "sha256-OSL4Ls3bCua5ut8zWodeIH1SfevCbsS7BgBJYdcJaVE=";
41 python3.pkgs.wrapPython
50 libgnomekbd # needed by XApp.KbdLayoutController
56 python3.pkgs.pygobject3 # for slick-greeter-check-hidpi
60 substituteInPlace src/slick-greeter.vala \
61 --replace "/usr/bin/numlockx" "${numlockx}/bin/numlockx" \
62 --replace "/usr/share/xsessions/" "/run/current-system/sw/share/xsessions/" \
63 --replace "/usr/share/wayland-sessions/" "/run/current-system/sw/share/wayland-sessions/" \
64 --replace "/usr/bin/slick-greeter" "${placeholder "out"}/bin/slick-greeter"
66 substituteInPlace src/session-list.vala \
67 --replace "/usr/share" "${placeholder "out"}/share"
69 # We prefer stable path here.
70 substituteInPlace data/x.dm.slick-greeter.gschema.xml \
71 --replace "/usr/share/onboard" "/run/current-system/sw/share/onboard"
73 patchShebangs files/usr/bin/*
77 # intltoolize fails during autoreconfPhase unless this
78 # directory is created manually.
83 "--localstatedir=/var"
85 "--sbindir=${placeholder "out"}/bin"
89 "localstatedir=\${TMPDIR}"
90 "sysconfdir=${placeholder "out"}/etc"
94 substituteInPlace "$out/share/xgreeters/slick-greeter.desktop" \
95 --replace "Exec=slick-greeter" "Exec=$out/bin/slick-greeter"
97 cp -r files/usr/* $out
101 buildPythonPath "$out $pythonPath"
103 --prefix PYTHONPATH : "$program_PYTHONPATH"
107 passthru.xgreeters = linkFarm "lightdm-slick-greeter-xgreeters" [{
108 path = "${lightdm-slick-greeter}/share/xgreeters/slick-greeter.desktop";
109 name = "lightdm-slick-greeter.desktop";
113 description = "A slick-looking LightDM greeter";
114 homepage = "https://github.com/linuxmint/slick-greeter";
115 license = licenses.gpl3Only;
116 maintainers = with maintainers; [ water-sucks bobby285271 ];
117 platforms = platforms.linux;