Merge pull request #123518 from tollb/fix/spice-vdagent-gmemdup-deprecation-build-error-20210518a

spice-vdagent: fix build error with glib > 2.68
This commit is contained in:
Jan Tojnar 2021-05-18 20:05:01 +02:00 committed by GitHub
commit 73b982e621
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,10 @@ stdenv.mkDerivation rec {
url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.bz2";
sha256 = "0n8jlc1pv6mkry161y656b1nk9hhhminjq6nymzmmyjl7k95ymzx";
};
# FIXME: May no longer be needed with spice-vdagent versions over 0.21.0
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
postPatch = ''
substituteInPlace data/spice-vdagent.desktop --replace /usr $out
'';