jbang: make jbang able to see itself

I understand why it has been restricted to a limited PATH, but it seems
reasonable that jbang can execute itself. There are tools out there that
assume as much (e.g. the Jupyter kernel jbang-catalog).
This commit is contained in:
Dave Syer
2024-06-18 12:05:32 +00:00
parent 0ab9c9aa87
commit 68942a074f
+1 -1
View File
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
cp -r . $out
wrapProgram $out/bin/jbang \
--set JAVA_HOME ${jdk} \
--set PATH ${lib.makeBinPath [ coreutils jdk curl ]}
--set PATH ${lib.makeBinPath [ (placeholder "out") coreutils jdk curl ]}
runHook postInstall
'';