mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 22:30:44 -06:00
27 lines
513 B
Nix
27 lines
513 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
|
|
];
|
|
};
|
|
}
|