mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 10:13:14 -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
|
|
];
|
|
};
|
|
}
|