From a44c73ba3e41ed048363c6aff972185a9c7b641e Mon Sep 17 00:00:00 2001 From: lunik1 Date: Sun, 7 Jan 2024 16:18:20 +0000 Subject: [PATCH] add cljfmt --- README.md | 1 + modules/hooks.nix | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index e7286226..a14a6008 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,7 @@ use nix ## Clojure +- [cljfmt](https://github.com/weavejester/cljfmt) - [zprint](https://github.com/kkinnear/zprint) ## Elm diff --git a/modules/hooks.nix b/modules/hooks.nix index f03e1aeb..6391b15e 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -2009,6 +2009,14 @@ in types = [ "toml" ]; }; + cljfmt = + { + name = "cljfmt"; + description = "A tool for formatting Clojure code."; + entry = "${pkgs.cljfmt}/bin/cljfmt fix"; + types_or = [ "clojure" "clojurescript" "edn" ]; + }; + zprint = { name = "zprint";