nixos/modules/krisp-patcher.nix
2025-08-13 09:16:00 +01:00

29 lines
821 B
Nix

{ pkgs, ... }:
let
krisp-patcher =
pkgs.writers.writePython3Bin "krisp-patcher"
{
libraries = with pkgs.python3Packages; [
capstone
pyelftools
];
flakeIgnore = [
"E501" # line too long (82 > 79 characters)
"F403" # 'from module import *' used; unable to detect undefined names
"F405" # name may be undefined, or defined from star imports: module
];
}
(
builtins.readFile (
pkgs.fetchurl {
url = "https://raw.githubusercontent.com/sersorrel/sys/afc85e6b249e5cd86a7bcf001b544019091b928c/hm/discord/krisp-patcher.py";
sha256 = "sha256-h8Jjd9ZQBjtO3xbnYuxUsDctGEMFUB5hzR/QOQ71j/E=";
}
)
);
in
{
environment.systemPackages = [
krisp-patcher
];
}