wine with custom patches

This commit is contained in:
LavaDesu 2021-05-13 18:22:33 +07:00
parent 628e2788be
commit 4ce7819d89
Signed by: cilly
GPG key ID: 6500251E087653C9
4 changed files with 57 additions and 0 deletions

View file

@ -23,6 +23,7 @@
linux
polybar
picom
wine-osu
];
nixpkgs.config.allowUnfree = true;

View file

@ -4,6 +4,7 @@
gnupg
glxinfo htop light ncdu xorg.xgamma
alacritty discord-canary element-desktop firefox gnome3.nautilus pavucontrol tor-browser-bundle-bin
wine-osu
(pkgs.writeShellScriptBin "nix-flakes" ''
exec ${pkgs.nixUnstable}/bin/nix --experimental-features "nix-command flakes" "$@"

View file

@ -24,6 +24,7 @@
};
};
});
wine-osu = import ./overlays/wine-osu.nix;
};
in
{

54
overlays/wine-osu.nix Normal file
View file

@ -0,0 +1,54 @@
self: super: {
wine-osu = (super.wineStaging.overrideDerivation(o: {
patches = (o.patches or []) ++ [
#(builtins.fetchurl {
# url = "https://gist.githubusercontent.com/LavaDesu/01c0f3144526da6aed4b2deb1d10cc99/raw/304d2def1b37f1319e27428f049f22c74eea882b/winepulse-v6.5-revert-wasapifriendy.patch";
# sha256 = "1wjjwf1jfwafk1kdq0iw0r3hvi1h0i7ni276pv263rkkv418i8bq";
#})
(builtins.fetchurl {
url = "https://gist.githubusercontent.com/LavaDesu/01c0f3144526da6aed4b2deb1d10cc99/raw/304d2def1b37f1319e27428f049f22c74eea882b/winepulse-v6.5-wasapifriendy.patch";
sha256 = "12fhnbyl6kw284z3d6685xhcx21jmwhvibphx669qqbxj9bfk4hi";
})
];
})).override {
wineRelease = "staging";
wineBuild = "wineWow";
pngSupport = true;
jpegSupport = true;
tiffSupport = true;
gettextSupport = true;
fontconfigSupport = true;
alsaSupport = true;
gtkSupport = true;
openglSupport = true;
tlsSupport = true;
gstreamerSupport = true;
#cupsSupport = true;
colorManagementSupport = true;
dbusSupport = true;
mpg123Support = true;
#openalSupport = true;
#openclSupport = true;
#cairoSupport = true;
#odbcSupport = true;
netapiSupport = true;
cursesSupport = true;
vaSupport = true;
pcapSupport = true;
#v4lSupport = true;
#saneSupport = true;
gsmSupport = true;
#gphoto2Support = true;
#ldapSupport = true;
pulseaudioSupport = true;
udevSupport = true;
xineramaSupport = true;
xmlSupport = true;
vulkanSupport = true;
sdlSupport = true;
faudioSupport = true;
vkd3dSupport = true;
mingwSupport = true;
};
}