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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
503 B
Diff
Raw Normal View History

diff --git a/repl.k b/repl.k
index 4c023467..10414162 100755
2021-08-31 15:24:24 +00:00
--- 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"]}