Skip to content

Instantly share code, notes, and snippets.

@timokau
Created August 30, 2019 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timokau/76e1dd80823fae96d10b087105db3dd6 to your computer and use it in GitHub Desktop.
Save timokau/76e1dd80823fae96d10b087105db3dd6 to your computer and use it in GitHub Desktop.
from nix_bisect import nix, test_util, git_bisect
drv = nix.instantiate('something')
(rebuilds, fetches) = build_dry(drv)
if len(rebuilds) > 42:
git_bisect.quit_skip()
try:
nix.build([drv])
except nix.BuildFailure:
git_bisect.quit_bad()
git_bisect.quit_good()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment