mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-26 01:00:44 -06:00
20 lines
320 B
Nix
20 lines
320 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
|
|
];
|
|
};
|
|
}
|