Merge branch 'cljfmt' into 'master'

nongnu: Add cljfmt.

See merge request nonguix/nonguix!804
This commit is contained in:
Mathieu Lirzin 2026-01-24 23:15:18 +01:00
commit cabc16baec

View file

@ -123,6 +123,38 @@ lets you focus on your code.")
and EDN, without the need of a running REPL.") and EDN, without the need of a running REPL.")
(license license:epl1.0))) (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 (define-public clojure-lsp
(package (package
(name "clojure-lsp") (name "clojure-lsp")