yabridge: Fix for wine 6.20

This commit is contained in:
Stefan Frijters 2021-10-24 18:53:21 +02:00
parent a244dd9886
commit 3378731579
No known key found for this signature in database
GPG key ID: 7619A6BC6E7DFA6F

View file

@ -1,6 +1,7 @@
{ lib
, multiStdenv
, fetchFromGitHub
, fetchpatch
, substituteAll
, meson
, ninja
@ -85,6 +86,12 @@ in multiStdenv.mkDerivation rec {
src = ./hardcode-wine.patch;
inherit wine;
})
# Remove with next yabridge update
(fetchpatch {
name = "fix-for-wine-6.20.patch";
url = "https://github.com/robbert-vdh/yabridge/commit/5be149cb525a638f7fc3adf84918c8239ee50ecf.patch";
sha256 = "sha256-x/gfn4mKZIGQ4M0o/0LlZF8i8wZDx/bkwf8wp0BGDBo=";
})
];
postPatch = ''
@ -121,8 +128,8 @@ in multiStdenv.mkDerivation rec {
];
preConfigure = ''
sed -i "214s|xcb.*|xcb_32bit_dep = winegcc.find_library('xcb', dirs: [ '${lib.getLib pkgsi686Linux.xorg.libxcb}/lib', ])|" meson.build
sed -i "192 i '${lib.getLib pkgsi686Linux.boost}/lib'," meson.build
sed -i "221s|xcb.*|xcb_32bit_dep = winegcc.find_library('xcb', dirs: [ '${lib.getLib pkgsi686Linux.xorg.libxcb}/lib', ])|" meson.build
sed -i "199 i '${lib.getLib pkgsi686Linux.boost}/lib'," meson.build
'';
installPhase = ''