add derivation path to hint

This commit is contained in:
Ben Burdette 2020-08-05 11:21:36 -06:00
parent f1a47a96b6
commit e4eae078a5

View file

@ -172,7 +172,7 @@ static int _main(int argc, char * * argv)
else else
{ {
// build the hint template. // build the hint template.
string hintstring = "required (system, features): (%s, %s)"; string hintstring = "derivation: %s\nrequired (system, features): (%s, %s)";
hintstring += "\n%s available machines:"; hintstring += "\n%s available machines:";
hintstring += "\n(systems, maxjobs, supportedFeatures, mandatoryFeatures)"; hintstring += "\n(systems, maxjobs, supportedFeatures, mandatoryFeatures)";
@ -183,6 +183,7 @@ static int _main(int argc, char * * argv)
// add the template values. // add the template values.
auto hint = hintformat(hintstring); auto hint = hintformat(hintstring);
hint hint
% drvPath->to_string()
% neededSystem % neededSystem
% concatStringsSep<StringSet>(", ", requiredFeatures) % concatStringsSep<StringSet>(", ", requiredFeatures)
% machines.size(); % machines.size();