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; })