mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-14 07:57:53 -06:00
21 lines
332 B
Nix
21 lines
332 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgsFrom,
|
|
pkgFrom,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkIfIn;
|
|
cfg = config.oizys.languages;
|
|
zig = (pkgsFrom "zig2nix").zig.master.bin;
|
|
zls = (pkgFrom "zls").overrideAttrs { nativeBuildInputs = [ zig ]; };
|
|
in
|
|
{
|
|
config = mkIfIn "zig" cfg {
|
|
environment.systemPackages = [
|
|
zig
|
|
zls
|
|
];
|
|
};
|
|
}
|