From 68942a074faff644fb5bfe62e3525a6dd76fdcff Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 18 Jun 2024 05:50:54 +0000 Subject: [PATCH] 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). --- pkgs/development/tools/jbang/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/jbang/default.nix b/pkgs/development/tools/jbang/default.nix index a21d26def2c3..e76caa4c58d8 100644 --- a/pkgs/development/tools/jbang/default.nix +++ b/pkgs/development/tools/jbang/default.nix @@ -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 '';