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