mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-17 20:52:09 -08:00
feat: add wine discord ipc bridge and preinstall ge-proton in steam
Some checks are pending
Check flake / check (push) Waiting to run
Some checks are pending
Check flake / check (push) Waiting to run
This commit is contained in:
parent
ae39d9a999
commit
67e0ee12f5
3 changed files with 46 additions and 0 deletions
|
@ -44,6 +44,12 @@ in
|
||||||
mangojuice
|
mangojuice
|
||||||
r2modman
|
r2modman
|
||||||
modrinth-app
|
modrinth-app
|
||||||
|
|
||||||
|
(wine-discord-ipc-bridge.overrideAttrs (
|
||||||
|
final: prev: {
|
||||||
|
meta.platforms = prev.meta.platforms ++ [ "x86_64-linux" ];
|
||||||
|
}
|
||||||
|
))
|
||||||
];
|
];
|
||||||
|
|
||||||
liminalOS.programs.flatpak.enable = true;
|
liminalOS.programs.flatpak.enable = true;
|
||||||
|
@ -62,6 +68,9 @@ in
|
||||||
dedicatedServer.openFirewall = true;
|
dedicatedServer.openFirewall = true;
|
||||||
localNetworkGameTransfers.openFirewall = true;
|
localNetworkGameTransfers.openFirewall = true;
|
||||||
gamescopeSession.enable = true;
|
gamescopeSession.enable = true;
|
||||||
|
extraCompatPackages = with pkgs; [
|
||||||
|
proton-ge-bin
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.gamescope.enable = true;
|
programs.gamescope.enable = true;
|
||||||
|
|
36
pkgs/by-name/wine-discord-ipc-bridge/default.nix
Normal file
36
pkgs/by-name/wine-discord-ipc-bridge/default.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
})
|
|
@ -6,4 +6,5 @@ final: prev: {
|
||||||
modrinth-app = callPackage ./by-name/modrinth-app { };
|
modrinth-app = callPackage ./by-name/modrinth-app { };
|
||||||
# hyprland-qtutils = callPackage ./by-name/hyprland-qtutils { };
|
# hyprland-qtutils = callPackage ./by-name/hyprland-qtutils { };
|
||||||
rdrview = callPackage ./by-name/rdrview { };
|
rdrview = callPackage ./by-name/rdrview { };
|
||||||
|
wine-discord-ipc-bridge = callPackage ./by-name/wine-discord-ipc-bridge { };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue