we are able to parse str to int in the kernel

This commit is contained in:
Sebastian Moser
2024-08-16 15:37:45 +02:00
parent 84c973d392
commit 349b792c18
7 changed files with 205 additions and 3 deletions

View File

@@ -3,11 +3,13 @@
}: let
python = pkgs.python3.withPackages (ps: with ps; [pkgs.python311Packages.cryptography]);
python_script = pkgs.writeText "main-py" (builtins.readFile ./main.py);
read-helper = pkgs.callPackage ./read-helper.nix {};
in pkgs.writeShellApplication {
name = "yt_block";
runtimeInputs = with pkgs; [ iptables bash gnugrep ps util-linux ];
text = ''
export PYTHON=${python}/bin/python
export READ_HELPER=${read-helper}/bin/read-helper
${python}/bin/python ${python_script} "$@"
'';
}