mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
* Experimental feature: allow a derivation to tell the build hook that
it requires a certain feature on the build machine, e.g. requiredSystemFeatures = [ "kvm" ]; We need this in Hydra to make sure that builds that require KVM support are forwarded to machines that have KVM support. Probably this should also be enforced for local builds.
This commit is contained in:
parent
e41ecbf730
commit
766f708418
4 changed files with 43 additions and 12 deletions
|
@ -966,6 +966,17 @@ Strings tokenizeString(const string & s, const string & separators)
|
|||
}
|
||||
|
||||
|
||||
string concatStringsSep(const string & sep, const Strings & ss)
|
||||
{
|
||||
string s;
|
||||
foreach (Strings::const_iterator, i, ss) {
|
||||
if (s.size() != 0) s += sep;
|
||||
s += *i;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
string statusToString(int status)
|
||||
{
|
||||
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue