1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-15 16:56:37 +00:00

nix: fix mandatoryFeatures in nix.buildMachines

Copied directly from https://github.com/NixOS/nixpkgs/pull/193404
This commit is contained in:
Andrew Childs 2022-10-03 12:33:21 +09:00
parent 02d2551c92
commit d0121790d4

View file

@ -683,8 +683,10 @@ in
(if machine.sshKey != null then machine.sshKey else "-")
(toString machine.maxJobs)
(toString machine.speedFactor)
(concatStringsSep "," (machine.supportedFeatures ++ machine.mandatoryFeatures))
(concatStringsSep "," machine.mandatoryFeatures)
(let res = (machine.supportedFeatures ++ machine.mandatoryFeatures);
in if (res == []) then "-" else (concatStringsSep "," res))
(let res = machine.mandatoryFeatures;
in if (res == []) then "-" else (concatStringsSep "," machine.mandatoryFeatures))
]
++ optional (isNixAtLeast "2.4pre") (if machine.publicHostKey != null then machine.publicHostKey else "-")))
+ "\n"