Skip to content

Commit

Permalink
Merge pull request tweag#124 from tweag/fix-fix-113
Browse files Browse the repository at this point in the history
Fix label construction for nix file dependencies
  • Loading branch information
mergify[bot] authored Apr 22, 2020
2 parents 606a81f + 7127361 commit a5c94b5
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 @@ -142,7 +142,7 @@ def _nixpkgs_package_impl(repository_ctx):
for f in content.splitlines():
# Hack: this is to register all Nix files as dependencies
# of this rule (see issue #113)
repository_ctx.path(Label("@{}//:{}".format(path_name, f)))
repository_ctx.path(target.relative(":{}".format(f)))

# If repositories is not set, leave empty so nix will fail
# unless a pinned nixpkgs is set in the `nix_file` attribute.
Expand Down

0 comments on commit a5c94b5

Please sign in to comment.