From c50713220e35c24ff3a29cd18a2335647ef109f2 Mon Sep 17 00:00:00 2001 From: SZanko Date: Thu, 14 Nov 2024 17:23:18 +0100 Subject: [PATCH] Add leiningen option to clojure Signed-off-by: SZanko --- src/modules/languages/clojure.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/modules/languages/clojure.nix b/src/modules/languages/clojure.nix index 2e8ba4dcf..deeb9b4c5 100644 --- a/src/modules/languages/clojure.nix +++ b/src/modules/languages/clojure.nix @@ -6,10 +6,20 @@ in { options.languages.clojure = { enable = lib.mkEnableOption "tools for Clojure development"; + leiningen = { + enable = lib.mkEnableOption "leiningen"; + package = lib.mkOption { + type = lib.types.package; + default = pkgs.leiningen; + defaultText = lib.literalExpression "pkgs.leiningen"; + description = "The leiningen package to use."; + }; + }; }; config = lib.mkIf cfg.enable { packages = with pkgs; [ + (cfg.leiningen.enable && cfg.leiningen.package) (clojure.override { jdk = config.languages.java.jdk.package; })