2019-09-11 12:10:36 +01:00
|
|
|
{ stdenv, linkFarm, lightdm-mini-greeter, fetchFromGitHub, autoreconfHook, pkgconfig, lightdm, gtk3, glib, gdk-pixbuf, wrapGAppsHook, librsvg }:
|
2018-04-19 04:45:06 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lightdm-mini-greeter";
|
2020-04-04 14:40:49 +01:00
|
|
|
version = "0.4.0";
|
2018-04-19 04:45:06 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prikhi";
|
|
|
|
repo = "lightdm-mini-greeter";
|
|
|
|
rev = version;
|
2020-04-04 14:40:49 +01:00
|
|
|
sha256 = "10hga7pmfyjdvj4xwm3djwrhk50brcpycj3p3c57pa0vnx4ill3s";
|
2018-04-19 04:45:06 +01:00
|
|
|
};
|
|
|
|
|
2019-09-11 12:10:36 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig wrapGAppsHook ];
|
|
|
|
buildInputs = [ lightdm gtk3 glib gdk-pixbuf librsvg ];
|
2018-04-19 04:45:06 +01:00
|
|
|
|
|
|
|
configureFlags = [ "--sysconfdir=/etc" ];
|
2019-09-11 12:10:36 +01:00
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2019-09-11 12:11:04 +01:00
|
|
|
passthru.xgreeters = linkFarm "lightdm-mini-greeter-xgreeters" [{
|
|
|
|
path = "${lightdm-mini-greeter}/share/xgreeters/lightdm-mini-greeter.desktop";
|
|
|
|
name = "lightdm-mini-greeter.desktop";
|
|
|
|
}];
|
|
|
|
|
2018-04-19 04:45:06 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A minimal, configurable, single-user GTK3 LightDM greeter";
|
|
|
|
homepage = https://github.com/prikhi/lightdm-mini-greeter;
|
|
|
|
license = licenses.gpl3;
|
2018-11-02 02:08:19 +00:00
|
|
|
maintainers = with maintainers; [ mnacamura prikhi ];
|
2018-04-19 04:45:06 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|