diff options
| author | Mathieu Lirzin <mthl@reuz.fr> | 2025-12-26 04:06:03 +0100 |
|---|---|---|
| committer | Jelle Licht <jlicht@fsfe.org> | 2026-03-27 17:17:44 +0100 |
| commit | 1ceaab0101dbcd6fd359cb40432d3a782363a97f (patch) | |
| tree | 5e8055f5fc60878c2775fc272b52a35be138b2d9 /nongnu | |
| parent | 1ae5ee1e61b8f4e41c93e69a0303aeaeddb39b1e (diff) | |
nongnu: Add cljfmt.
* nongnu/packages/clojure.scm (cljfmt): New variable.
Signed-off-by: Jelle Licht <jlicht@fsfe.org>
Diffstat (limited to 'nongnu')
| -rw-r--r-- | nongnu/packages/clojure.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nongnu/packages/clojure.scm b/nongnu/packages/clojure.scm index f698ae9..d49f3f7 100644 --- a/nongnu/packages/clojure.scm +++ b/nongnu/packages/clojure.scm @@ -123,6 +123,38 @@ lets you focus on your code.") and EDN, without the need of a running REPL.") (license license:epl1.0))) +(define-public cljfmt + (package + (name "cljfmt") + (version "0.15.6") + (source (origin + (method url-fetch/tarbomb) + (uri (string-append + "https://github.com/weavejester/cljfmt/releases/download/" + version "/cljfmt-" version "-linux-amd64.tar.gz")) + (sha256 + (base32 + "1hnk0kb5za18gla2lgskl53aws721r9lpwif2fnm6jixymkv32ih")))) + (build-system binary-build-system) + (arguments + (list #:patchelf-plan `'(("cljfmt" ("gcc" "zlib"))) + #:install-plan `'(("./cljfmt" "/bin/")) + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'chmod + (lambda _ + (chmod "cljfmt" #o755)))))) + (native-inputs + (list unzip)) + (inputs + (list `(,gcc "lib") + zlib)) + (supported-systems '("x86_64-linux")) + (home-page "https://github.com/weavejester/cljfmt") + (synopsis "Formatter for Clojure code") + (description "cljfmt is a tool for detecting and fixing formatting errors +in Clojure code.") + (license license:epl1.0))) + (define-public clojure-lsp (package (name "clojure-lsp") |
