From 4ce7819d89df4a802981f71f83817da177bb7d34 Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Thu, 13 May 2021 18:22:33 +0700 Subject: [PATCH] wine with custom patches --- cfg/winter/main.nix | 1 + cfg/winter/packages.nix | 1 + flake.nix | 1 + overlays/wine-osu.nix | 54 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 overlays/wine-osu.nix diff --git a/cfg/winter/main.nix b/cfg/winter/main.nix index 2448739..d1bb863 100644 --- a/cfg/winter/main.nix +++ b/cfg/winter/main.nix @@ -23,6 +23,7 @@ linux polybar picom + wine-osu ]; nixpkgs.config.allowUnfree = true; diff --git a/cfg/winter/packages.nix b/cfg/winter/packages.nix index 2ccc024..f8c4a86 100644 --- a/cfg/winter/packages.nix +++ b/cfg/winter/packages.nix @@ -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" "$@" diff --git a/flake.nix b/flake.nix index 4baad0d..2c9c32d 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,7 @@ }; }; }); + wine-osu = import ./overlays/wine-osu.nix; }; in { diff --git a/overlays/wine-osu.nix b/overlays/wine-osu.nix new file mode 100644 index 0000000..5b4fac5 --- /dev/null +++ b/overlays/wine-osu.nix @@ -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; + }; +}