Skip to content

Commit

Permalink
feat: test rpcbridge
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Rabbito <[email protected]>
  • Loading branch information
anthr76 committed Oct 27, 2024
1 parent c06c156 commit 72f0520
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
3 changes: 3 additions & 0 deletions nix-darwin/personalities/base/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@
"https://nyx.chaotic.cx/"
# Snowflake
"https://snowflake.cachix.org"
# Nix-Gaming
"https://nix-gaming.cachix.org"
];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8="
"snowflake.cachix.org-1:p9pP30w7PFDuzkJ2v4TQ446cXLUglrnBUhN6tUzp2sA="
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
];
};
};
Expand Down
3 changes: 3 additions & 0 deletions nixos/personalities/desktop/gaming.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
gpu_device = "0";
amd_performance_level = "high";
};
custom = {
start = "${pkgs.rpc-bridge}/bin/bridge.sh";
};
};
};
gaming-kernel.enable = true;
Expand Down
3 changes: 2 additions & 1 deletion pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
wayland-push-to-talk-fix = pkgs.callPackage ./wayland-push-to-talk-fix { };
discover-overlay = pkgs.python3Packages.callPackage ./discover-overlay { };
lightworks_2023_02_02 = pkgs.callPackage ./lightworks_2023_02_02 { };
yuki-iptv = pkgs.python3Packages.callPackage ./yuki-iptv { };
yuki-iptv = pkgs.callPackage ./yuki-iptv { };
rpc-bridge = pkgs.callPackage ./rpc-bridge { };
}
34 changes: 34 additions & 0 deletions pkgs/rpc-bridge/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
stdenv,
lib,
fetchFromGitHub,
wine,
pkgsCross
}:

stdenv.mkDerivation rec {
pname = "rpc-bridge";
version = "1.2";

src = fetchFromGitHub {
owner = "EnderIce2";
repo = "rpc-bridge";
rev = "v${version}";
sha256 = "sha256-Wy823yc16Lk0HdUOteWsuzTT9N20x7MRVs4hhlNlj/I=";
};

nativeBuildInputs = [pkgsCross.mingwW64.stdenv.cc wine];

installPhase = ''
mkdir -p $out/bin
cp build/bridge.exe $out/bin
cp build/bridge.sh $out/bin
'';

meta = with lib; {
description = "Enable Rich Presence between your Wine applications and the native Discord client on Linux and macOS.";
license = licenses.mit;
platforms = platforms.all;
homepage = "https://github.com/EnderIce2/rpc-bridge";
};
}

0 comments on commit 72f0520

Please sign in to comment.