Skip to content

Commit

Permalink
feat: add wine discord ipc bridge and preinstall ge-proton in steam
Browse files Browse the repository at this point in the history
  • Loading branch information
youwen5 committed Dec 30, 2024
1 parent ae39d9a commit 67e0ee1
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/linux/gaming/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -62,6 +68,9 @@ in
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
gamescopeSession.enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
};

programs.gamescope.enable = true;
Expand Down
36 changes: 36 additions & 0 deletions pkgs/by-name/wine-discord-ipc-bridge/default.nix
Original file line number Diff line number Diff line change
@@ -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" ];
};
})
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
}

0 comments on commit 67e0ee1

Please sign in to comment.