diff options
Diffstat (limited to 'devel/janet-lsp/files')
| -rw-r--r-- | devel/janet-lsp/files/janet-lsp.in | 11 | ||||
| -rw-r--r-- | devel/janet-lsp/files/patch-src_main.janet | 19 |
2 files changed, 30 insertions, 0 deletions
diff --git a/devel/janet-lsp/files/janet-lsp.in b/devel/janet-lsp/files/janet-lsp.in new file mode 100644 index 000000000000..69eea77d05c3 --- /dev/null +++ b/devel/janet-lsp/files/janet-lsp.in @@ -0,0 +1,11 @@ +@comment | This file is normally created by `jpm install`. The problem is that +@comment | it uses the path from --tree for janet and the full path to that tree +@comment | for the image. Both wrong. +@comment | See work/janet-lsp-*/jpm_tree/bin/janet-lsp for the version with the +@comment | wrong paths that this replaces. It is this small. +#!%%LOCALBASE%%/bin/janet +(import janet-lsp) +(put root-env :syspath "%%LOCALBASE%%/lib") + +(defn main [& args] + (janet-lsp/main ;args)) diff --git a/devel/janet-lsp/files/patch-src_main.janet b/devel/janet-lsp/files/patch-src_main.janet new file mode 100644 index 000000000000..fd9ea4e1dfd2 --- /dev/null +++ b/devel/janet-lsp/files/patch-src_main.janet @@ -0,0 +1,19 @@ +--- src/main.janet.orig 2025-12-15 16:13:59 UTC ++++ src/main.janet +@@ -16,12 +16,10 @@ + (use judge) + + (def version "0.0.11") +-(def commit +- (with [proc (os/spawn ["git" "rev-parse" "--short" "HEAD"] :xp {:out :pipe})] +- (let [[out] (ev/gather +- (ev/read (proc :out) :all) +- (os/proc-wait proc))] +- (if out (string/trimr out) "")))) ++ ++# `git rev-parse --short HEAD` is going to find the revision of the ports tree. ++# The tag should be enough so just supply a string for commit. ++(def commit "FreeBSD") + + (def jpm-defs (require "../libs/jpm-defs")) + |
