mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 06:03:15 -06:00
23 lines
473 B
Nix
23 lines
473 B
Nix
{nixpkgs,config, lib,pkgs,...}:
|
|
let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
cfg = config.languages.nim;
|
|
in
|
|
{
|
|
options.languages.nim.enable = mkEnableOption "nim";
|
|
config = mkIf cfg.enable {
|
|
nixpkgs.overlays = [
|
|
# (import ../../overlays/nim {})
|
|
(import ../../overlays/nimlsp {})
|
|
(import ../../overlays/nimble {})
|
|
(import ../../overlays/nim-atlas {})
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
nim-atlas
|
|
nim
|
|
nimble
|
|
nimlsp
|
|
];
|
|
};
|
|
}
|