Flake: add discord-krisp-fixer package

This commit is contained in:
Toast 2023-11-04 00:32:03 +01:00
parent 3348f8457a
commit a9df918291
2 changed files with 18 additions and 0 deletions

View file

@ -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"; }; {
pseint = callPackage ./pkgs/pseint.nix {};
anything-sync-daemon = callPackage ./pkgs/anything-sync-daemon {};
discord-krisp-fixer = callPackage ./pkgs/discord-krisp-fixer {};
};
};
nixosConfigurations = {

17
pkgs/discord-krisp-fixer Normal file
View 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"
'';
}