Merge pull request #274841 from r-ryantm/auto-update/miniaudio
[NixPkgs.git] / pkgs / applications / display-managers / lightdm-mini-greeter / default.nix
blob72f386798709e794d6d342972b90aee8f9fa4d1b
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";
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 wrapGAppsHook ];
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 = "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";
37   };