Files
company-nix/lib/mkSystem.nix
2026-04-10 17:25:08 +02:00

16 lines
300 B
Nix

{ systems }:
{
target,
...
}@args:
let
adapter =
if target == "darwin" then
systems.darwin
else if target == "linux" then
systems.linux
else
throw "Unsupported target `${target}`. Expected `darwin` or `linux`.";
in
adapter (builtins.removeAttrs args [ "target" ])