From 3b0ccb1ea45db0d75d30b43250c2c5b8d1d44330 Mon Sep 17 00:00:00 2001 From: Michael Raitza Date: Fri, 18 Dec 2020 11:48:10 +0100 Subject: [PATCH] Make tmp/ target work with non-flake inputs --- tmp/default.do | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmp/default.do b/tmp/default.do index 38300ad..0e12067 100644 --- a/tmp/default.do +++ b/tmp/default.do @@ -8,7 +8,7 @@ pfx=${2%.rw} redo-ifchange ../flake.nix ../flake.lock || true resolve_flake() { - STORE_PATH=$(nix flake info --json --inputs-from .. "$pfx" | jq -r .path) + STORE_PATH=$(nix flake archive .. --dry-run --json | jq -r .inputs.\"$pfx\".path) # Do this after 'info' to avoid unnecessary network activity. nix flake # archive may try to download a flake although the store path is available.