diff --git a/meat.nu b/meat.nu index d5aa4f8..a7373e9 100644 --- a/meat.nu +++ b/meat.nu @@ -46,7 +46,7 @@ def nix-build-nom [out: string, source: string, attr: string, extras: list| ^$env.MONITOR --json + ^nix-build --log-format internal-json -v --out-link $out $source -A $attr ...$extras out+err>| ^$env.MONITOR --json } } @@ -181,9 +181,8 @@ def ls-remote-head [url: string] { # Real prefetch — caches in /nix/store and returns the full locked attrset. # Output JSON: { hash: SRI, locked: {...}, original: {...}, storePath: PATH } -# --refresh bypasses the ref→rev cache (otherwise stale within tarball-ttl). def prefetch-pin [url: string] { - let r = ^nix flake prefetch --refresh --json $url | complete + let r = ^nix flake prefetch --json $url | complete if $r.exit_code != 0 { error make { msg: $"prefetch failed for ($url): ($r.stderr)" } } let j = $r.stdout | from json $j.locked | insert narHash $j.hash