Bobby Rong 2022-08-01 16:28:58 +08:00
parent 3039c243cf
commit 16518f39fc
No known key found for this signature in database
GPG Key ID: ED07364437C91161

View File

@ -16,12 +16,12 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lightdm-gtk-greeter"; pname = "lightdm-gtk-greeter";
version = "2.0.7"; version = "2.0.8";
src = fetchurl { src = fetchurl {
# Release tarball differs from source tarball. # 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"; url = "https://github.com/Xubuntu/lightdm-gtk-greeter/releases/download/lightdm-gtk-greeter-${version}/lightdm-gtk-greeter-${version}.tar.gz";
sha256 = "1g7wc3d3vqfa7mrdhx1w9ywydgjbffla6rbrxq9k3sc62br97qms"; sha256 = "vvuzAMezT/IYZf28iBIB9zD8fFYOngHRfomelHcVBhM=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -45,19 +45,10 @@ stdenv.mkDerivation rec {
"--sbindir=${placeholder "out"}/bin" # for wrapGAppsHook to wrap automatically "--sbindir=${placeholder "out"}/bin" # for wrapGAppsHook to wrap automatically
]; ];
postPatch = ''
# exo-csource has been dropped from exo, and replaced by xdt-csource from xfce4-dev-tools
for f in configure.ac src/Makefile.am; do
substituteInPlace $f --replace exo-csource xdt-csource
done
'';
preConfigure = '' preConfigure = ''
configureFlagsArray+=( --enable-at-spi-command="${at-spi2-core}/libexec/at-spi-bus-launcher --launch-immediately" ) configureFlagsArray+=( --enable-at-spi-command="${at-spi2-core}/libexec/at-spi-bus-launcher --launch-immediately" )
''; '';
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
installFlags = [ installFlags = [
"localstatedir=\${TMPDIR}" "localstatedir=\${TMPDIR}"
"sysconfdir=${placeholder "out"}/etc" "sysconfdir=${placeholder "out"}/etc"