2024-04-05 12:18:44 -05:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
2024-05-06 14:32:00 -05:00
|
|
|
}:
|
|
|
|
let
|
2024-04-05 12:18:44 -05:00
|
|
|
inherit (lib) mkIfIn;
|
|
|
|
cfg = config.oizys.languages;
|
2024-07-02 12:02:40 -05:00
|
|
|
zig = inputs.zig2nix.outputs.packages.${pkgs.system}.zig.default.bin;
|
|
|
|
zls = inputs.zls.outputs.packages.${pkgs.system}.default.overrideAttrs {
|
2024-07-03 10:52:28 -05:00
|
|
|
nativeBuildInputs = [ zig ];
|
2024-07-02 12:02:40 -05:00
|
|
|
};
|
2024-05-06 14:32:00 -05:00
|
|
|
in
|
|
|
|
{
|
2024-04-05 12:18:44 -05:00
|
|
|
config = mkIfIn "zig" cfg {
|
2024-05-06 14:32:00 -05:00
|
|
|
environment.systemPackages = [
|
|
|
|
zig
|
|
|
|
zls
|
|
|
|
];
|
2024-04-05 12:18:44 -05:00
|
|
|
};
|
|
|
|
}
|