feat: add wine discord ipc bridge and preinstall ge-proton in steam
Some checks are pending
Check flake / check (push) Waiting to run

This commit is contained in:
Youwen Wu 2024-12-30 01:44:17 -08:00
parent ae39d9a999
commit 67e0ee12f5
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
3 changed files with 46 additions and 0 deletions

View file

@ -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;

View file

@ -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" ];
};
})

View file

@ -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 { };
}