From fe67bb8dc77935071c4533d5328093630eb4491f Mon Sep 17 00:00:00 2001 From: "user@node5.net" Date: Sun, 28 Jun 2026 15:04:13 +0200 Subject: flake - package sub programs aswell --- flake.nix | 15 +++++++++++++++ pyproject.toml | 1 + 2 files changed, 16 insertions(+) diff --git a/flake.nix b/flake.nix index b9933b9..bf93cc2 100644 --- a/flake.nix +++ b/flake.nix @@ -39,11 +39,26 @@ echo $out cp -r $src/src/static/ $out/${python.sitePackages} cp -r $src/src/templates/ $out/${python.sitePackages} + cp $src/fetch_program.sh $out/bin/ ''; }); in { packages.x86_64-linux.default = pkg; + apps.x86_64-linux = { + node5_text-tv_bornhack = { + type = "app"; + program = "${pkg}/bin/node5_text-tv_bornhack"; + }; + node5_text-tv_bornhack_pixel-flut-program = { + type = "app"; + program = "${pkg}/bin/node5_text-tv_bornhack_pixel-flut-program"; + }; + node5_text-tv_bornhack_fetch_program = { + type = "app"; + program = "${pkg}/bin/fetch_program.sh"; + }; + }; pythonPath = "${python.pkgs.makePythonPath attrs.dependencies}:${pkg}/${python.sitePackages}"; }; } diff --git a/pyproject.toml b/pyproject.toml index 3c1cbf6..1d3b0cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,3 +15,4 @@ dependencies = [ # Here, we define the entry point to be the 'main()' function in the module 'app/main.py' [project.scripts] node5_text-tv_bornhack = "text_tv_bornhack:main" +node5_text-tv_bornhack_pixel-flut-program = "get_program_for_pixel_flut:main" -- cgit v1.3.1