Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error using
nix_file_content
with nixpkgs_local_repository
Using `nixpkgs_local_repository` with the `nix_file_content` parameter: ``` nixpkgs_local_repository( name = "nixpkgs", nix_file_content = "...", nix_file_deps = [], ) ``` resulted in an error: ``` ERROR: An error occurred during the fetch of repository 'nixpkgs': Traceback (most recent call last): File "/home/claudio/.cache/bazel/_bazel_claudio/c7ff5b30a595e0e5def985dcafaa7d4c/external/io_tweag_rules_nixpkgs/nixpkgs/nixpkgs.bzl", line 54, column 28, in _nixpkgs_local_repository_impl repository_ctx.file( Error in file: file() got named argument for positional-only parameter 'path' ``` After the call to `repository_ctx.file` was fixed, another error showed up: ``` ERROR: An error occurred during the fetch of repository 'local_nixpkgs': Traceback (most recent call last): File "/private/var/tmp/_bazel_tweag/0060e94eb8cc5b3692d332a00756b8a8/external/rules_nixpkgs_core/nixpkgs.bzl", line 102, column 61, in _nixpkgs_local_repository_impl repository_ctx.file("nix-file-deps", content = "\n".join(repository_files)) Error in join: expected string for sequence element 0, got 'path' ``` Fixes tweag#140.
- Loading branch information