Skip to content

Commit

Permalink
Merge pull request tweag#93 from tweag/timeout
Browse files Browse the repository at this point in the history
Reduce timeout passed to repository_ctx.execute
  • Loading branch information
aherrmann authored Oct 24, 2019
2 parents 546aa58 + 0167ef5 commit 2980a2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nixpkgs/nixpkgs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ def _nixpkgs_package_impl(repository_ctx):

# Large enough integer that Bazel can still parse. We don't have
# access to MAX_INT and 0 is not a valid timeout so this is as good
# as we can do.
timeout = 1073741824
# as we can do. The value shouldn't be too large to avoid errors on
# macOS, see https://github.com/tweag/rules_nixpkgs/issues/92.
timeout = 8640000
exec_result = _execute_or_fail(
repository_ctx,
nix_build,
Expand Down

0 comments on commit 2980a2f

Please sign in to comment.