yt-block fixes

This commit is contained in:
Sebastian Moser
2024-08-15 13:02:57 +02:00
parent a8df39483b
commit 84c973d392
5 changed files with 12 additions and 7 deletions

View File

@@ -1,12 +1,12 @@
{ pkgs
, ...
}: let
python = pkgs.python3.withPackages (ps: with ps; [pkgs.python311Packages.cryptography]);
myPython = pkgs.python3.withPackages (ps: with ps; [pkgs.python311Packages.cryptography]);
python_script = pkgs.writeText "main-py" (builtins.readFile ./main.py);
in pkgs.writeShellApplication {
name = "yt_block_sterter";
runtimeInputs = with pkgs; [ iptables bash gnugrep ps util-linux ];
runtimeInputs = with pkgs; [ myPython iptables bash gnugrep ps util-linux ];
text = ''
${python}/bin/python ${python_script} starter
${myPython}/bin/python ${python_script} starter
'';
}