summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix12
1 files changed, 11 insertions, 1 deletions
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