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