diff --git a/modules/linux/gaming/default.nix b/modules/linux/gaming/default.nix index 1959f37..2943062 100755 --- a/modules/linux/gaming/default.nix +++ b/modules/linux/gaming/default.nix @@ -44,6 +44,12 @@ in mangojuice r2modman modrinth-app + + (wine-discord-ipc-bridge.overrideAttrs ( + final: prev: { + meta.platforms = prev.meta.platforms ++ [ "x86_64-linux" ]; + } + )) ]; liminalOS.programs.flatpak.enable = true; @@ -62,6 +68,9 @@ in dedicatedServer.openFirewall = true; localNetworkGameTransfers.openFirewall = true; gamescopeSession.enable = true; + extraCompatPackages = with pkgs; [ + proton-ge-bin + ]; }; programs.gamescope.enable = true; diff --git a/pkgs/by-name/wine-discord-ipc-bridge/default.nix b/pkgs/by-name/wine-discord-ipc-bridge/default.nix new file mode 100644 index 0000000..7790255 --- /dev/null +++ b/pkgs/by-name/wine-discord-ipc-bridge/default.nix @@ -0,0 +1,36 @@ +{ + lib, + stdenv, + wine, + pkgsCross, + fetchFromGitHub, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "wine-discord-ipc-bridge"; + version = "0.0.3"; + + src = fetchFromGitHub { + owner = "0e4ef622"; + repo = "wine-discord-ipc-bridge"; + rev = "v${finalAttrs.version}"; + hash = "sha256-jzsbOKMakNQ6RNMlioX088fGzFBDxOP45Atlsfm2RKg="; + }; + + nativeBuildInputs = [ + pkgsCross.mingw32.stdenv.cc + wine + ]; + + installPhase = '' + mkdir -p $out/bin + cp winediscordipcbridge.exe $out/bin + cp winediscordipcbridge-steam.sh $out/bin + ''; + + meta = { + description = "Enable games running under wine to use Discord Rich Presence"; + homepage = "https://github.com/0e4ef622/wine-discord-ipc-bridge"; + license = lib.licenses.mit; + platforms = [ "x86_64-linux" ]; + }; +}) diff --git a/pkgs/default.nix b/pkgs/default.nix index 4e34e4d..bb52463 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -6,4 +6,5 @@ final: prev: { modrinth-app = callPackage ./by-name/modrinth-app { }; # hyprland-qtutils = callPackage ./by-name/hyprland-qtutils { }; rdrview = callPackage ./by-name/rdrview { }; + wine-discord-ipc-bridge = callPackage ./by-name/wine-discord-ipc-bridge { }; }