vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / applications / display-managers / lightdm-mini-greeter / default.nix
blobb72b837eaf3442f3a1c1be4496126d9130a7d5e0
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";
5   version = "0.5.1";
7   src = fetchFromGitHub {
8     owner = "prikhi";
9     repo = "lightdm-mini-greeter";
10     rev = version;
11     sha256 = "sha256-Pm7ExfusFIPktX2C4UE07qgOVhcWhVxnaD3QARpmu7Y=";
12   };
14   nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook3 ];
15   buildInputs = [ lightdm gtk3 glib gdk-pixbuf librsvg ];
17   configureFlags = [ "--sysconfdir=/etc" ];
18   makeFlags = [ "configdir=${placeholder "out"}/etc" ];
20   postInstall = ''
21     substituteInPlace "$out/share/xgreeters/lightdm-mini-greeter.desktop" \
22       --replace "Exec=lightdm-mini-greeter" "Exec=$out/bin/lightdm-mini-greeter"
23   '';
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";
28   }];
30   meta = with lib; {
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";
38   };