3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/display-managers/lightdm-mini-greeter/default.nix

39 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv, linkFarm, lightdm-mini-greeter, fetchFromGitHub, autoreconfHook, pkg-config, lightdm, gtk3, glib, gdk-pixbuf, wrapGAppsHook, librsvg }:
2018-04-19 04:45:06 +01:00
stdenv.mkDerivation rec {
pname = "lightdm-mini-greeter";
2021-02-25 12:22:11 +00:00
version = "0.5.0";
2018-04-19 04:45:06 +01:00
src = fetchFromGitHub {
owner = "prikhi";
repo = "lightdm-mini-greeter";
rev = version;
2021-02-25 12:22:11 +00:00
sha256 = "sha256-cVOnd3k+9hFQjROiwPpxZcCxD2NiH1eclJHF88eV6BM=";
2018-04-19 04:45:06 +01:00
};
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
buildInputs = [ lightdm gtk3 glib gdk-pixbuf librsvg ];
2018-04-19 04:45:06 +01:00
configureFlags = [ "--sysconfdir=/etc" ];
makeFlags = [ "configdir=${placeholder "out"}/etc" ];
2018-04-19 04:45:06 +01:00
postInstall = ''
substituteInPlace "$out/share/xgreeters/lightdm-mini-greeter.desktop" \
--replace "Exec=lightdm-mini-greeter" "Exec=$out/bin/lightdm-mini-greeter"
'';
passthru.xgreeters = linkFarm "lightdm-mini-greeter-xgreeters" [{
path = "${lightdm-mini-greeter}/share/xgreeters/lightdm-mini-greeter.desktop";
name = "lightdm-mini-greeter.desktop";
}];
meta = with lib; {
2018-04-19 04:45:06 +01:00
description = "A minimal, configurable, single-user GTK3 LightDM greeter";
homepage = "https://github.com/prikhi/lightdm-mini-greeter";
2018-04-19 04:45:06 +01:00
license = licenses.gpl3;
maintainers = with maintainers; [ mnacamura prikhi ];
2018-04-19 04:45:06 +01:00
platforms = platforms.linux;
changelog = "https://github.com/prikhi/lightdm-mini-greeter/blob/master/CHANGELOG.md";
2018-04-19 04:45:06 +01:00
};
}