trying to patch yabridge

This commit is contained in:
Matt Nish-Lapidus 2025-06-20 15:44:46 -04:00
parent b5337a73b4
commit d048a0ae76
6 changed files with 1091 additions and 0 deletions

36
overlays/yabridge.nix Normal file
View file

@ -0,0 +1,36 @@
final: prev: {
yabridge = prev.yabridge.overrideAttrs (old: {
src = prev.fetchFromGitHub {
owner = "robbert-vdh";
repo = "yabridge";
rev = "HEAD";
hash = "sha256-pxQ+B4WF9iWNeLholSSqSMLJ3lz/Ub/PfgkAuacUAqc=";
};
patches = [
# Hard code bitbridge & runtime dependencies
(prev.replaceVars ./hardcode-dependencies.patch {
libdbus = prev.pkgs.dbus.lib;
libxcb32 = prev.pkgsi686Linux.xorg.libxcb;
# inherit prev.wine;
})
# Patch the chainloader to search for libyabridge through NIX_PROFILES
./libyabridge-from-nix-profiles.patch
];
});
yabridgectl = prev.yabridge.overrideAttrs (old: {
cargoHash = "";
});
wineWowPackages.stagingFull = prev.pkgs-stable.wineWowPackages.stagingFull.overrideAttrs
(old: {
patches = [ ./wine-6006.patch ];
waylandSupport = true;
fontconfigSupport = true;
vulkanSupport = true;
});
}