we are able to parse str to int in the kernel
This commit is contained in:
@@ -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} "$@"
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user