Skip to content

Commit

Permalink
Add Standard ML language
Browse files Browse the repository at this point in the history
  • Loading branch information
ratsclub committed Oct 24, 2023
1 parent 5529446 commit a5b79ed
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/modules/languages/standardml.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ pkgs, config, lib, ... }:

let
cfg = config.languages.standardml;
in
{
options.languages.standardml = {
enable = lib.mkEnableOption "tools for Standard ML development";

package = lib.mkOption {
type = lib.types.package;
default = pkgs.mlton;
defaultText = "pkgs.mlton";
description = ''
The Standard ML package to use.
'';
};
};

config = lib.mkIf cfg.enable {
packages = with pkgs; [
cfg.package
millet
smlfmt
];
};
}

0 comments on commit a5b79ed

Please sign in to comment.