Browse Source

Make tmp/<input> target work with non-flake inputs

master
Michael Raitza 6 months ago
parent
commit
3b0ccb1ea4
  1. 2
      tmp/default.do

2
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.

Loading…
Cancel
Save