13 lines
385 B
Nix
13 lines
385 B
Nix
{ pkgs
|
|
, ...
|
|
}: let
|
|
python = 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 ];
|
|
text = ''
|
|
${python}/bin/python ${python_script} starter
|
|
'';
|
|
}
|