1 { lib, stdenv, linkFarm, lightdm-mini-greeter, fetchFromGitHub, autoreconfHook, pkg-config, lightdm, gtk3, glib, gdk-pixbuf, wrapGAppsHook, 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 wrapGAppsHook ];
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 = "A minimal, configurable, single-user GTK3 LightDM greeter";
32 homepage = "https://github.com/prikhi/lightdm-mini-greeter";
33 license = licenses.gpl3;
34 maintainers = with maintainers; [ mnacamura prikhi ];
35 platforms = platforms.linux;
36 changelog = "https://github.com/prikhi/lightdm-mini-greeter/blob/master/CHANGELOG.md";