3
0
Fork 0
forked from mirrors/nixpkgs

synergy: fix check with gcc6

This commit is contained in:
Orivej Desh 2017-08-28 16:08:48 +00:00 committed by Robin Gloster
parent 3a18fa412a
commit 46cb14c8cc

View file

@ -16,9 +16,15 @@ stdenv.mkDerivation rec {
patches = [ ./openssl-1.1.patch ];
patch_gcc6 = fetchpatch {
url = https://raw.githubusercontent.com/gentoo/gentoo/20e2bff3697ebf5f291e9907b34aae3074a36b53/dev-cpp/gmock/files/gmock-1.7.0-gcc6.patch;
sha256 = "0j3f381x1lf8qci9pfv6mliggl8qs2w05v5lw3rs3gn7aibg174d";
};
postPatch = ''
${unzip}/bin/unzip -d ext/gmock-1.6.0 ext/gmock-1.6.0.zip
${unzip}/bin/unzip -d ext/gtest-1.6.0 ext/gtest-1.6.0.zip
patch -d ext/gmock-1.6.0 -p1 -i ${patch_gcc6}
''
# We have XRRNotifyEvent (libXrandr), but with the upstream CMakeLists.txt
# it's not able to find it (it's trying to search the store path of libX11