2018-04-19 04:45:06 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, lightdm, gtk3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lightdm-mini-greeter-${version}";
|
2018-11-03 16:24:00 +00:00
|
|
|
version = "0.3.4";
|
2018-04-19 04:45:06 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prikhi";
|
|
|
|
repo = "lightdm-mini-greeter";
|
|
|
|
rev = version;
|
2018-11-03 16:24:00 +00:00
|
|
|
sha256 = "1qi0bsqi8z2zv3303ww0kd7bciz6qx8na5bkvgrqlwyvq31czai5";
|
2018-04-19 04:45:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ lightdm gtk3 ];
|
|
|
|
|
|
|
|
configureFlags = [ "--sysconfdir=/etc" ];
|
|
|
|
makeFlags = [ "configdir=$(out)/etc" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace "$out/share/xgreeters/lightdm-mini-greeter.desktop" \
|
|
|
|
--replace "Exec=lightdm-mini-greeter" "Exec=$out/bin/lightdm-mini-greeter"
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|