From 92592b51ca0f6ca4a41215b9416973d8aaf98865 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Fri, 17 Sep 2021 14:58:51 -0500 Subject: [PATCH] fix(build): #546 nix store not found - It was missing to set the searchPaths --- default.nix | 1 + src/cli/main/__main__.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/default.nix b/default.nix index e0306be5..3d57a5d9 100644 --- a/default.nix +++ b/default.nix @@ -27,6 +27,7 @@ makeScript { __nixpkgs__.git __nixpkgs__.gnutar __nixpkgs__.gzip + __nixpkgs__.nixStable __nixpkgs__.python38 ]; }; diff --git a/src/cli/main/__main__.py b/src/cli/main/__main__.py index 55abf1af..5ad0bfcc 100644 --- a/src/cli/main/__main__.py +++ b/src/cli/main/__main__.py @@ -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