Compare commits
2 commits
ebeee537a4
...
e44c71c128
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e44c71c128 | ||
|
|
2d564db596 |
1 changed files with 3 additions and 2 deletions
5
meat.nu
5
meat.nu
|
|
@ -46,7 +46,7 @@ def nix-build-nom [out: string, source: string, attr: string, extras: list<strin
|
|||
if ($env.MONITOR? | is-empty) {
|
||||
^nix-build --out-link $out $source -A $attr ...$extras
|
||||
} else {
|
||||
^nix-build --log-format internal-json -v --out-link $out $source -A $attr ...$extras out+err>| ^$env.MONITOR --json
|
||||
^nix-build --log-format internal-json --out-link $out $source -A $attr ...$extras out+err>| ^$env.MONITOR --json
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -181,8 +181,9 @@ 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 --json $url | complete
|
||||
let r = ^nix flake prefetch --refresh --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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue