From 8fcb767b5d7255d9c7185d7a7cc8d97f6831fca8 Mon Sep 17 00:00:00 2001 From: "user@node5.net" Date: Thu, 9 Jul 2026 21:11:22 +0200 Subject: flake - make binaries available to fetch scripts path --- flake.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 3da58ef..aa33a62 100644 --- a/flake.nix +++ b/flake.nix @@ -33,13 +33,23 @@ changelog = "https://git.node5.net/misc/text-tv.bornhack.node5.net/log/"; mainProgram = "node5-text-tv"; }; - propagatedBuildInputs = (attrs.propagatedBuildInputs or []) ++ [ pkgs.git ]; # Make git binary available + postInstall = '' echo $src 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/node5-text-tv-fetch + + # Make necessary programs available to the scripts PATH + wrapProgram "$out/bin/node5-text-tv-fetch" \ + --prefix PATH : ${lib.makeBinPath [ + pkgs.coreutils + pkgs.curl + pkgs.jq + pkgs.xq + pkgs.diffutils + ]} ''; }); in -- cgit v1.3.1