Skip to content

Commit

Permalink
Add leiningen option to clojure
Browse files Browse the repository at this point in the history
Signed-off-by: SZanko <[email protected]>
  • Loading branch information
SZanko committed Nov 14, 2024
1 parent b48b0d8 commit c507132
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modules/languages/clojure.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})
Expand Down

0 comments on commit c507132

Please sign in to comment.