2022-08-12 12:06:08 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, lightdm-gtk-greeter
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, lightdm
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, intltool
|
|
|
|
, linkFarm
|
|
|
|
, wrapGAppsHook
|
2022-08-12 12:06:08 +00:00
|
|
|
, gtk3
|
2021-04-05 15:23:46 +00:00
|
|
|
, xfce4-dev-tools
|
2020-04-24 23:36:52 +00:00
|
|
|
, at-spi2-core
|
|
|
|
, librsvg
|
|
|
|
, hicolor-icon-theme
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lightdm-gtk-greeter";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.0.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-08-12 12:06:08 +00:00
|
|
|
# Release tarball differs from source tarball.
|
|
|
|
url = "https://github.com/Xubuntu/lightdm-gtk-greeter/releases/download/lightdm-gtk-greeter-${version}/lightdm-gtk-greeter-${version}.tar.gz";
|
|
|
|
sha256 = "vvuzAMezT/IYZf28iBIB9zD8fFYOngHRfomelHcVBhM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
intltool
|
|
|
|
xfce4-dev-tools
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
lightdm
|
|
|
|
librsvg
|
|
|
|
hicolor-icon-theme
|
|
|
|
gtk3
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--disable-indicator-services-command"
|
|
|
|
"--sbindir=${placeholder "out"}/bin" # for wrapGAppsHook to wrap automatically
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray+=( --enable-at-spi-command="${at-spi2-core}/libexec/at-spi-bus-launcher --launch-immediately" )
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
"sysconfdir=${placeholder "out"}/etc"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace "$out/share/xgreeters/lightdm-gtk-greeter.desktop" \
|
|
|
|
--replace "Exec=lightdm-gtk-greeter" "Exec=$out/bin/lightdm-gtk-greeter"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.xgreeters = linkFarm "lightdm-gtk-greeter-xgreeters" [{
|
2022-08-12 12:06:08 +00:00
|
|
|
path = "${lightdm-gtk-greeter}/share/xgreeters/lightdm-gtk-greeter.desktop";
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "lightdm-gtk-greeter.desktop";
|
|
|
|
}];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/Xubuntu/lightdm-gtk-greeter";
|
|
|
|
description = "A GTK greeter for LightDM";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2021-04-05 15:23:46 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ bobby285271 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|