oizys/modules/languages/zig.nix
2024-07-03 10:53:16 -05:00

23 lines
395 B
Nix

{
inputs,
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkIfIn;
cfg = config.oizys.languages;
zig = inputs.zig2nix.outputs.packages.${pkgs.system}.zig.default.bin;
zls = inputs.zls.outputs.packages.${pkgs.system}.default.overrideAttrs {
nativeBuildInputs = [ zig ];
};
in
{
config = mkIfIn "zig" cfg {
environment.systemPackages = [
zig
zls
];
};
}