depot/third_party/nixpkgs/pkgs/development/interpreters/ngn-k/repl-license-path.patch
Default email 646c172193 Project import generated by Copybara.
GitOrigin-RevId: c478eaf416411a7dedf773185b6d5bfc966a80ae
2021-12-21 10:18:32 +08:00

10 lines
450 B
Diff

--- a/repl.k
+++ b/repl.k
@@ -1,6 +1,6 @@
#!k
`1:"ngn/k, (c) 2019-2021 ngn, GNU AGPLv3. type \\ for more info\n",repl.prompt:," "
-repl.cmds:(,"a")!{`1:1:repl.joinpath[repl.dirname`argv 0]"LICENSE";}
+repl.cmds:(,"a")!{`1:1:repl.joinpath[repl.dirname`argv 0]"../share/ngn-k/LICENSE";}
repl.dirname:{$[#x:"/"/-1_"/"\x;x;,"."]}
repl.joinpath:{$[x~,".";y;"/"~*|x;x,y;x,"/",y]}
repl.fmt:{$[x~(::);"";(`A~@x)&1<#x;"(",("\n "/`k'x),")\n";`k[x],"\n"]}