Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / interpreters / ngn-k / repl-license-path.patch
blob17b998db187ebbb94124fe7b6c460f6dad1943a6
1 diff --git a/repl.k b/repl.k
2 index 4c023467..10414162 100755
3 --- a/repl.k
4 +++ b/repl.k
5 @@ -2,7 +2,7 @@
6 `1:"ngn/k, (c) 2019-2022 ngn, GNU AGPLv3. type \\ for more info\n"
7 \d repl
8 `1:prompt:," " /use 0x0720 for emacs integration
9 -cmds:(,"a")!{`1:1:joinpath[dirname`argv 0]"LICENSE";}
10 +cmds:(,"a")!{`1:1:joinpath[dirname`argv 0]"../share/ngn-k/LICENSE";}
11 dirname:{$[#x:"/"/-1_"/"\x;x;,"."]}
12 joinpath:{$[x~,".";y;"/"~*|x;x,y;x,"/",y]}
13 fmt:{$[x~(::);"";(`A~@x)&1<#x;"(",("\n "/`k'x),")\n";`k[x],"\n"]}