Skip to content

Commit

Permalink
Merge pull request #68 from tweag/fix-readlink
Browse files Browse the repository at this point in the history
Replace readlink by builtin realpath
  • Loading branch information
mboes committed Jan 31, 2019
2 parents 58dd6bc + 63ef457 commit 40b5a9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nixpkgs/nixpkgs.bzl
Expand Up @@ -200,9 +200,7 @@ def nixpkgs_package(*args, **kwargs):
_nixpkgs_package(*args, **kwargs)

def _readlink(repository_ctx, path):
return _execute_or_fail(
repository_ctx, ["readlink", path],
).stdout.rstrip()
return repository_ctx.path(path).realpath

def nixpkgs_cc_autoconf_impl(repository_ctx):
cpu_value = get_cpu_value(repository_ctx)
Expand Down

0 comments on commit 40b5a9f

Please sign in to comment.