mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 22:30:44 -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
|
|
];
|
|
};
|
|
}
|