mirror of
https://github.com/NixOS/nix
synced 2025-07-13 17:10:47 +02:00
* Before a build, show the disk space that the downloaded store paths
will approximately require.
This commit is contained in:
parent
06699d4219
commit
bdf089f463
11 changed files with 36 additions and 29 deletions
|
@ -63,10 +63,15 @@ if ($ARGV[0] eq "--query") {
|
|||
`@bindir@/nix-store --query --references $storePath`;
|
||||
die "cannot query references of `$storePath'" if $? != 0;
|
||||
|
||||
my $narSize = `@bindir@/nix-store --query --size $storePath`;
|
||||
die "cannot query size of `$storePath'" if $? != 0;
|
||||
chomp $narSize;
|
||||
|
||||
print "$deriver\n";
|
||||
print scalar @references, "\n";
|
||||
print "$_\n" foreach @references;
|
||||
print "0\n"; # !!! showing size not supported (yet)
|
||||
print "$narSize\n";
|
||||
print "$narSize\n";
|
||||
}
|
||||
|
||||
else { die "unknown command `$cmd'"; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue