mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-08-21 14:47:18 -05:00
28 lines
512 B
Nix
28 lines
512 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
|
|
];
|
|
};
|
|
}
|