looking-glass-client: fix build

spice-protocol removed the spice/error_codes.h header file [1], which
looking-glass-client was still using.

[1] 334cef51d0
This commit is contained in:
Mario Rodas 2019-05-02 22:04:46 -05:00
parent cdf234714b
commit 6e90393ead
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub
{ stdenv, fetchFromGitHub, fetchpatch
, cmake, pkgconfig, SDL2, SDL, SDL2_ttf, openssl, spice-protocol, fontconfig
, libX11, freefont_ttf, nettle, libconfig
}:
@ -21,6 +21,15 @@ stdenv.mkDerivation rec {
libX11 freefont_ttf nettle libconfig cmake
];
patches = [
# Fix obsolete spice header usage. Remove with the next release. See https://github.com/gnif/LookingGlass/pull/126
(fetchpatch {
url = "https://github.com/gnif/LookingGlass/commit/2567447b24b28458ba0f09c766a643ad8d753255.patch";
sha256 = "04j2h75rpxd71szry15f31r6s0kgk96i8q9khdv9q3i2fvkf242n";
stripLen = 1;
})
];
enableParallelBuilding = true;
sourceRoot = "source/client";