Skip to content

Commit

Permalink
fix(build): #546 nix store not found
Browse files Browse the repository at this point in the history
- It was missing to set the searchPaths
  • Loading branch information
kamadorueda committed Sep 17, 2021
1 parent 572e2d3 commit 92592b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ makeScript {
__nixpkgs__.git
__nixpkgs__.gnutar
__nixpkgs__.gzip
__nixpkgs__.nixStable
__nixpkgs__.python38
];
};
Expand Down
4 changes: 1 addition & 3 deletions src/cli/main/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,9 @@ def cache_push(cache: List[Dict[str, str]], out: str) -> None:
for config in cache:
if config["type"] == "cachix" and "CACHIX_AUTH_TOKEN" in environ:
_log("Pushing to cache")
_, stdout, _ = _run(["nix-store", "-qR", out])
_run(
args=["cachix", "push", "-c", "0", config["name"]],
args=["cachix", "push", "-c", "0", config["name"], out],
capture_io=False,
stdin=stdout,
)
return

Expand Down

0 comments on commit 92592b5

Please sign in to comment.