Skip to content

Commit

Permalink
Merge pull request #850 from ratsclub/main
Browse files Browse the repository at this point in the history
Add Standard ML language
  • Loading branch information
domenkozar authored Oct 25, 2023
2 parents 5298ee8 + a5b79ed commit ac09ffb
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 ac09ffb

Please sign in to comment.