nixpkgs/pkgs/development/interpreters/ngn-k/repl-license-path.patch
2022-11-29 15:57:09 +01:00

13 lines
503 B
Diff

diff --git a/repl.k b/repl.k
index 4c023467..10414162 100755
--- a/repl.k
+++ b/repl.k
@@ -2,7 +2,7 @@
`1:"ngn/k, (c) 2019-2022 ngn, GNU AGPLv3. type \\ for more info\n"
\d repl
`1:prompt:," " /use 0x0720 for emacs integration
-cmds:(,"a")!{`1:1:joinpath[dirname`argv 0]"LICENSE";}
+cmds:(,"a")!{`1:1:joinpath[dirname`argv 0]"../share/ngn-k/LICENSE";}
dirname:{$[#x:"/"/-1_"/"\x;x;,"."]}
joinpath:{$[x~,".";y;"/"~*|x;x,y;x,"/",y]}
fmt:{$[x~(::);"";(`A~@x)&1<#x;"(",("\n "/`k'x),")\n";`k[x],"\n"]}