mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-10 00:43:15 -06:00
23 lines
394 B
Nix
23 lines
394 B
Nix
{
|
|
inputs,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkIfIn;
|
|
cfg = config.oizys.languages;
|
|
zig = inputs.zig2nix.outputs.packages.${pkgs.system}.zig.master.bin;
|
|
zls = inputs.zls.outputs.packages.${pkgs.system}.default.overrideAttrs {
|
|
nativeBuildInputs = [ zig ];
|
|
};
|
|
in
|
|
{
|
|
config = mkIfIn "zig" cfg {
|
|
environment.systemPackages = [
|
|
zig
|
|
zls
|
|
];
|
|
};
|
|
}
|