mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-09 20:33:15 -06:00
20 lines
322 B
Nix
20 lines
322 B
Nix
{
|
|
config,
|
|
lib,
|
|
flake,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkIfIn;
|
|
cfg = config.oizys.languages;
|
|
zig = (flake.pkgs "zig2nix").zig.master.bin;
|
|
zls = (flake.pkg "zls").overrideAttrs { nativeBuildInputs = [ zig ]; };
|
|
in
|
|
{
|
|
config = mkIfIn "zig" cfg {
|
|
environment.systemPackages = [
|
|
zig
|
|
zls
|
|
];
|
|
};
|
|
}
|