1 { lib, stdenv, linkFarm, lightdm-mini-greeter, fetchFromGitHub, autoreconfHook, pkg-config, lightdm, gtk3, glib, gdk-pixbuf, wrapGAppsHook3, librsvg }:
3 stdenv.mkDerivation rec {
4 pname = "lightdm-mini-greeter";
7 src = fetchFromGitHub {
9 repo = "lightdm-mini-greeter";
11 sha256 = "sha256-Pm7ExfusFIPktX2C4UE07qgOVhcWhVxnaD3QARpmu7Y=";
14 nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook3 ];
15 buildInputs = [ lightdm gtk3 glib gdk-pixbuf librsvg ];
17 configureFlags = [ "--sysconfdir=/etc" ];
18 makeFlags = [ "configdir=${placeholder "out"}/etc" ];
21 substituteInPlace "$out/share/xgreeters/lightdm-mini-greeter.desktop" \
22 --replace "Exec=lightdm-mini-greeter" "Exec=$out/bin/lightdm-mini-greeter"
25 passthru.xgreeters = linkFarm "lightdm-mini-greeter-xgreeters" [{
26 path = "${lightdm-mini-greeter}/share/xgreeters/lightdm-mini-greeter.desktop";
27 name = "lightdm-mini-greeter.desktop";
31 description = "Minimal, configurable, single-user GTK3 LightDM greeter";
32 mainProgram = "lightdm-mini-greeter";
33 homepage = "https://github.com/prikhi/lightdm-mini-greeter";
34 license = licenses.gpl3;
35 maintainers = with maintainers; [ mnacamura prikhi ];
36 platforms = platforms.linux;
37 changelog = "https://github.com/prikhi/lightdm-mini-greeter/blob/master/CHANGELOG.md";