From ef7e852590269426404f3704217ae1f3a8cd1888 Mon Sep 17 00:00:00 2001 From: BlackBeans Date: Fri, 25 Nov 2022 21:22:21 +0100 Subject: [PATCH] J: fixing init script The startup script used by jconsole (/bin/profile.ijs) doesn't try very hard to understand the file hierarchy it lives in, and just did not work with NixOS. For reasons unknown, it Just Worked for some time, but finally broke with an actual error message every time you launch jconsole in recent versions of nixpkgs. This commit just overwrites all the heuristics J uses to find out where its installation files are, to point where they actually are put by the installer. --- pkgs/development/interpreters/j/default.nix | 4 ++++ pkgs/development/interpreters/j/fix-install-path.patch | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/development/interpreters/j/fix-install-path.patch diff --git a/pkgs/development/interpreters/j/default.nix b/pkgs/development/interpreters/j/default.nix index 5e67986ac105..2da499352b3e 100644 --- a/pkgs/development/interpreters/j/default.nix +++ b/pkgs/development/interpreters/j/default.nix @@ -25,6 +25,10 @@ stdenv.mkDerivation rec { bc ]; + patches = [ + ./fix-install-path.patch + ]; + dontConfigure = true; # emulating build_all.sh configuration variables diff --git a/pkgs/development/interpreters/j/fix-install-path.patch b/pkgs/development/interpreters/j/fix-install-path.patch new file mode 100644 index 000000000000..08f3f98962c9 --- /dev/null +++ b/pkgs/development/interpreters/j/fix-install-path.patch @@ -0,0 +1,10 @@ +--- a/jlibrary/bin/profile.ijs 2022-11-23 18:45:50.049675025 +0100 ++++ b/jlibrary/bin/profile.ijs 2022-11-23 18:47:43.798532581 +0100 +@@ -13,6 +13,7 @@ + fhs=. (FHS"_)^:(0=4!:0<'FHS')(5=systype)*.0=#1!:0