oizys/modules/langs/nim.nix

24 lines
473 B
Nix
Raw Normal View History

2024-01-23 15:36:52 -06:00
{nixpkgs,config, lib,pkgs,...}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.languages.nim;
in
2024-01-23 11:51:13 -06:00
{
2024-01-23 15:36:52 -06:00
options.languages.nim.enable = mkEnableOption "nim";
config = mkIf cfg.enable {
2024-01-23 11:51:13 -06:00
nixpkgs.overlays = [
# (import ../../overlays/nim {})
(import ../../overlays/nimlsp {})
(import ../../overlays/nimble {})
(import ../../overlays/nim-atlas {})
];
environment.systemPackages = with pkgs; [
nim-atlas
nim
nimble
nimlsp
];
2024-01-23 15:36:52 -06:00
};
2024-01-23 11:51:13 -06:00
}