Skip to content

Commit

Permalink
Merge pull request #65 from tweag/nin-version-to-type
Browse files Browse the repository at this point in the history
Testing nix-build using reposity_ctx.which()
  • Loading branch information
Profpatsch authored Jan 28, 2019
2 parents df821c3 + d142864 commit e9da974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixpkgs/nixpkgs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ nixpkgs_local_repository = repository_rule(
)

def _is_supported_platform(repository_ctx):
return repository_ctx.execute(["nix-build","--version"]).return_code == 0
return repository_ctx.which("nix-build") != None

def _nixpkgs_package_impl(repository_ctx):
repository = repository_ctx.attr.repository
Expand Down

0 comments on commit e9da974

Please sign in to comment.