-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathclojure-lsp-native.rb.tmpl
29 lines (26 loc) · 996 Bytes
/
clojure-lsp-native.rb.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class ClojureLspNative < Formula
desc "Language Server (LSP) for Clojure"
homepage "https://github.com/clojure-lsp/clojure-lsp"
version "<version>"
option "with-dynamic", "Installs the not static binary."
if OS.mac?
if Hardware::CPU.arm?
url "https://github.com/clojure-lsp/clojure-lsp/releases/download/<version>/clojure-lsp-native-macos-aarch64.zip"
sha256 "<mac-arm-sha>"
else
url "https://github.com/clojure-lsp/clojure-lsp/releases/download/<version>/clojure-lsp-native-macos-amd64.zip"
sha256 "<mac-amd-sha>"
end
elsif OS.linux?
if build.with? "dynamic"
url "https://github.com/clojure-lsp/clojure-lsp/releases/download/<version>/clojure-lsp-native-linux-amd64.zip"
sha256 "<linux-sha>"
else
url "https://github.com/clojure-lsp/clojure-lsp/releases/download/<version>/clojure-lsp-native-static-linux-amd64.zip"
sha256 "<static-linux-sha>"
end
end
def install
bin.install "clojure-lsp"
end
end