my new youtube and minecraft block script

This commit is contained in:
Sebastian Moser
2024-07-16 18:11:43 +02:00
parent 724aac69ac
commit 4485209a15
4 changed files with 230 additions and 0 deletions

11
scripts/yt-block/app.nix Normal file
View File

@@ -0,0 +1,11 @@
{ pkgs
, ...
}: let
python = pkgs.python3.withPackages (ps: with ps; [pkgs.python311Pacakges.cryptography]);
python_script = pkgs.writeText (builtins.readFile ./main.py);
in pkgs.writeShellApplication {
name = "yt-block";
text = ''
${python}/bin/python ${python_script}
'';
}