jpm: fix incorrect config paths by referencing janet store path

close #373858

Signed-off-by: Seongmin Lee <boltlessengineer@proton.me>
This commit is contained in:
Seongmin Lee
2025-12-25 16:59:23 +09:00
committed by Seongmin Lee
parent cd64f1bd87
commit 2bed4702a5
@@ -48,6 +48,10 @@ stdenv.mkDerivation rec {
janet bootstrap.janet configs/${platformFile}
# patch default config to use janet's path instead of jpm itself
substituteInPlace $out/lib/janet/jpm/default-config.janet \
--replace-fail $out ${janet}
runHook postInstall
'';
@@ -55,6 +59,7 @@ stdenv.mkDerivation rec {
installCheckPhase = ''
$out/bin/jpm help
$out/bin/jpm show-paths
'';
meta = janet.meta // {