2021-01-17 03:09:27 +01:00
|
|
|
{ lib, stdenv, linkFarm, lightdm-mini-greeter, fetchFromGitHub, autoreconfHook, pkg-config, lightdm, gtk3, glib, gdk-pixbuf, wrapGAppsHook, librsvg }:
|
2018-04-19 05:45:06 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "lightdm-mini-greeter";
|
2021-03-03 02:27:42 +01:00
|
|
|
version = "0.5.1";
|
2018-04-19 05:45:06 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prikhi";
|
|
|
|
repo = "lightdm-mini-greeter";
|
|
|
|
rev = version;
|
2021-03-03 02:27:42 +01:00
|
|
|
sha256 = "sha256-Pm7ExfusFIPktX2C4UE07qgOVhcWhVxnaD3QARpmu7Y=";
|
2018-04-19 05:45:06 +02:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ];
|
2019-09-11 13:10:36 +02:00
|
|
|
buildInputs = [ lightdm gtk3 glib gdk-pixbuf librsvg ];
|
2018-04-19 05:45:06 +02:00
|
|
|
|
|
|
|
configureFlags = [ "--sysconfdir=/etc" ];
|
2019-09-11 13:10:36 +02:00
|
|
|
makeFlags = [ "configdir=${placeholder "out"}/etc" ];
|
2018-04-19 05:45:06 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace "$out/share/xgreeters/lightdm-mini-greeter.desktop" \
|
|
|
|
--replace "Exec=lightdm-mini-greeter" "Exec=$out/bin/lightdm-mini-greeter"
|
|
|
|
'';
|
|
|
|
|
2019-09-11 13:11:04 +02:00
|
|
|
passthru.xgreeters = linkFarm "lightdm-mini-greeter-xgreeters" [{
|
|
|
|
path = "${lightdm-mini-greeter}/share/xgreeters/lightdm-mini-greeter.desktop";
|
|
|
|
name = "lightdm-mini-greeter.desktop";
|
|
|
|
}];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-04-19 05:45:06 +02:00
|
|
|
description = "A minimal, configurable, single-user GTK3 LightDM greeter";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/prikhi/lightdm-mini-greeter";
|
2018-04-19 05:45:06 +02:00
|
|
|
license = licenses.gpl3;
|
2018-11-02 03:08:19 +01:00
|
|
|
maintainers = with maintainers; [ mnacamura prikhi ];
|
2018-04-19 05:45:06 +02:00
|
|
|
platforms = platforms.linux;
|
2020-04-04 15:55:19 +02:00
|
|
|
changelog = "https://github.com/prikhi/lightdm-mini-greeter/blob/master/CHANGELOG.md";
|
2018-04-19 05:45:06 +02:00
|
|
|
};
|
|
|
|
}
|