packages/wine-discord-ipc-bridge: init
This commit is contained in:
parent
bc7a06be63
commit
357774dc1b
6 changed files with 41 additions and 0 deletions
17
flake.lock
generated
17
flake.lock
generated
|
|
@ -557,6 +557,7 @@
|
||||||
"twemoji-but-good": "twemoji-but-good",
|
"twemoji-but-good": "twemoji-but-good",
|
||||||
"view-raw": "view-raw",
|
"view-raw": "view-raw",
|
||||||
"who-reacted": "who-reacted",
|
"who-reacted": "who-reacted",
|
||||||
|
"wine-discord-ipc-bridge": "wine-discord-ipc-bridge",
|
||||||
"zelk": "zelk",
|
"zelk": "zelk",
|
||||||
"zsh-abbr": "zsh-abbr",
|
"zsh-abbr": "zsh-abbr",
|
||||||
"zsh-history-substring-search": "zsh-history-substring-search"
|
"zsh-history-substring-search": "zsh-history-substring-search"
|
||||||
|
|
@ -765,6 +766,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"wine-discord-ipc-bridge": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1637884098,
|
||||||
|
"narHash": "sha256-D6H1RsrxhW25g6xKYjt831AKRBx4bLRHOWEk3HzM4zo=",
|
||||||
|
"owner": "0e4ef622",
|
||||||
|
"repo": "wine-discord-ipc-bridge",
|
||||||
|
"rev": "3f6432a2a2b6e929a361fc59e1fbfbb9d79d59a6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "0e4ef622",
|
||||||
|
"repo": "wine-discord-ipc-bridge",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"zelk": {
|
"zelk": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
spotify-adblock = { url = "github:abba23/spotify-adblock"; flake = false; };
|
spotify-adblock = { url = "github:abba23/spotify-adblock"; flake = false; };
|
||||||
tree-sitter-glimmer = { url = "github:alexlafroscia/tree-sitter-glimmer"; flake = false; };
|
tree-sitter-glimmer = { url = "github:alexlafroscia/tree-sitter-glimmer"; flake = false; };
|
||||||
tree-sitter-jsonc = { url = "gitlab:WhyNotHugo/tree-sitter-jsonc"; flake = false; };
|
tree-sitter-jsonc = { url = "gitlab:WhyNotHugo/tree-sitter-jsonc"; flake = false; };
|
||||||
|
wine-discord-ipc-bridge = { url = "github:0e4ef622/wine-discord-ipc-bridge"; flake = false; };
|
||||||
|
|
||||||
# shells
|
# shells
|
||||||
rust-overlay.url = "github:oxalica/rust-overlay";
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,5 @@
|
||||||
spotify-adblock = callPackage ./spotify-adblock { inherit inputs; };
|
spotify-adblock = callPackage ./spotify-adblock { inherit inputs; };
|
||||||
tree-sitter-glimmer = callPackage ./tree-sitter-glimmer { inherit inputs; };
|
tree-sitter-glimmer = callPackage ./tree-sitter-glimmer { inherit inputs; };
|
||||||
tree-sitter-jsonc = callPackage ./tree-sitter-jsonc { inherit inputs; };
|
tree-sitter-jsonc = callPackage ./tree-sitter-jsonc { inherit inputs; };
|
||||||
|
wine-discord-ipc-bridge = callPackage ./wine-discord-ipc-bridge { inherit inputs; };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
15
packages/wine-discord-ipc-bridge/default.nix
Normal file
15
packages/wine-discord-ipc-bridge/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgsCross,
|
||||||
|
stdenv
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "wine-discord-ipc-bridge.exe";
|
||||||
|
src = inputs.wine-discord-ipc-bridge;
|
||||||
|
|
||||||
|
buildInputs = [ pkgsCross.mingw32.buildPackages.gcc ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
cp winediscordipcbridge.exe $out
|
||||||
|
'';
|
||||||
|
}
|
||||||
3
scripts/ipcbridge
Normal file
3
scripts/ipcbridge
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
PROTON_REMOTE_DEBUG_CMD="{{BRIDGE_EXEC}}" PRESSURE_VESSEL_FILESYSTEMS_RW="$XDG_RUNTIME_DIR/discord-ipc-0" "$@"
|
||||||
|
|
@ -45,6 +45,10 @@
|
||||||
url = "https://github.com/0e4ef622/wine-discord-ipc-bridge/releases/download/v0.0.1/winediscordipcbridge.exe";
|
url = "https://github.com/0e4ef622/wine-discord-ipc-bridge/releases/download/v0.0.1/winediscordipcbridge.exe";
|
||||||
sha256 = "1swn9spxpq6blm74kjmfz4ipq6a8qjzccvb2msb25pf5b1z7jnns";
|
sha256 = "1swn9spxpq6blm74kjmfz4ipq6a8qjzccvb2msb25pf5b1z7jnns";
|
||||||
};
|
};
|
||||||
|
home.file.".local/bin/ipcbridge" = {
|
||||||
|
executable = true;
|
||||||
|
text = lib.strings.replaceStrings ["{{BRIDGE_EXEC}}"] [pkgs.me.wine-discord-ipc-bridge.outPath] (builtins.readFile ../../scripts/ipcbridge);
|
||||||
|
};
|
||||||
home.file.".local/bin/osu" = {
|
home.file.".local/bin/osu" = {
|
||||||
executable = true;
|
executable = true;
|
||||||
source = ../../scripts/osu;
|
source = ../../scripts/osu;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue