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