depot/third_party/nixpkgs/pkgs/development/interpreters/ngn-k/repl-license-path.patch

14 lines
503 B
Diff
Raw Normal View History

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"]}