Skip to content

Commit 6e81adf

Browse files
authored
Merge pull request #867 from running-grass/main
feat(langs): add Idris language
2 parents af34c27 + 28c6c50 commit 6e81adf

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/modules/languages/idris.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{ pkgs, config, lib, ... }:
2+
3+
let cfg = config.languages.idris;
4+
in {
5+
options.languages.idris = {
6+
enable = lib.mkEnableOption "tools for Idris development";
7+
8+
package = lib.mkOption {
9+
type = lib.types.package;
10+
default = pkgs.idris2;
11+
defaultText = "pkgs.idris2";
12+
description = ''
13+
The Idris package to use.
14+
'';
15+
example = "pkgs.idris";
16+
};
17+
};
18+
19+
config = lib.mkIf cfg.enable {
20+
packages = with pkgs; [
21+
cfg.package
22+
];
23+
};
24+
}

0 commit comments

Comments
 (0)