Flake: add discord-krisp-fixer package
This commit is contained in:
parent
3348f8457a
commit
a9df918291
2 changed files with 18 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ outputs = { self, nixpkgs, nixpkgs-unstable, agenix, home-manager, home-manager-
|
||||||
x86_64-linux = with import nixpkgs-unstable { system = "x86_64-linux"; }; {
|
x86_64-linux = with import nixpkgs-unstable { system = "x86_64-linux"; }; {
|
||||||
pseint = callPackage ./pkgs/pseint.nix {};
|
pseint = callPackage ./pkgs/pseint.nix {};
|
||||||
anything-sync-daemon = callPackage ./pkgs/anything-sync-daemon {};
|
anything-sync-daemon = callPackage ./pkgs/anything-sync-daemon {};
|
||||||
|
discord-krisp-fixer = callPackage ./pkgs/discord-krisp-fixer {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
|
||||||
17
pkgs/discord-krisp-fixer
Normal file
17
pkgs/discord-krisp-fixer
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{ writeShellApplication
|
||||||
|
, rizin
|
||||||
|
, discord
|
||||||
|
}:
|
||||||
|
|
||||||
|
writeShellApplication rec {
|
||||||
|
name = "discord-krisp-fixer";
|
||||||
|
|
||||||
|
runtimeInputs = [ rizin ];
|
||||||
|
|
||||||
|
text = ''
|
||||||
|
discord_version="${discord.version}"
|
||||||
|
file="$HOME/.config/discord/$discord_version/modules/discord_krisp/discord_krisp.node"
|
||||||
|
addr=$(rz-find -x '4881ec00010000' "$file" | head -n1)
|
||||||
|
rizin -q -w -c "s $addr + 0x30 ; wao nop" "$file"
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue