@@ -308,7 +308,10 @@ final: prev: {
308 assert isNull sha256;
308 assert isNull sha256;
309 builtins.fetchGit
309 builtins.fetchGit
310 ({ inherit url rev; } //
310 ({ inherit url rev; } //
311− final.buildPackages.lib.optionalAttrs (ref != null) { inherit ref; }
311+ (if ref != null
312+ then { inherit ref; }
313+ # Don't fail if rev not in default branch:
314+ else { allRefs = true; })
314 # Non-private repos must have sha256 set.
317 # Non-private repos must have sha256 set.
@@ -402,7 +405,10 @@ final: prev: {
403 builtins.fetchGit
406 builtins.fetchGit
404 ({ inherit url rev; } //
407 ({ inherit url rev; } //
405− final.buildPackages.lib.optionalAttrs (ref != null) { inherit ref; }
408+ (if ref != null
409+ then { inherit ref; }
410+ # don't fail if rev not in default branch:
411+ else { allRefs = true; })
408 final.evalPackages.fetchgit { inherit url rev sha256; };
414 final.evalPackages.fetchgit { inherit url rev sha256; };
@@ -725,6 +731,9 @@ final: prev: {
725 ++ final.lib.mapAttrsToList (n: v:
731 ++ final.lib.mapAttrsToList (n: v:
726 { name = "${prefix}${packageName}:test:${n}"; value = v; })
732 { name = "${prefix}${packageName}:test:${n}"; value = v; })
727 (package.components.tests)
733 (package.components.tests)
734+ ++ final.lib.mapAttrsToList (n: v:
735+ { name = "${prefix}${packageName}:benchmarks:${n}"; value = v; })
736+ (package.components.benchmarks)
728 ) (packageNames project);
737 ) (packageNames project);
729 checksForProject = prefix: project:
738 checksForProject = prefix: project:
730 final.lib.concatMap (packageName:
739 final.lib.concatMap (packageName: