mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
* Use `--query --requisites' and include successors when pushing. Don't
use `--query --generators' anymore.
This commit is contained in:
parent
40f32ae00a
commit
a01629894d
1 changed files with 8 additions and 8 deletions
|
@ -13,7 +13,7 @@ foreach my $id (@ARGV) {
|
||||||
|
|
||||||
my @paths;
|
my @paths;
|
||||||
|
|
||||||
open PATHS, "nix --query --refs $id 2> /dev/null |" or die "nix -qr";
|
open PATHS, "nix --query --requisites --include-successors $id 2> /dev/null |" or die "nix -qr";
|
||||||
while (<PATHS>) {
|
while (<PATHS>) {
|
||||||
chomp;
|
chomp;
|
||||||
die "bad: $_" unless /^\//;
|
die "bad: $_" unless /^\//;
|
||||||
|
@ -22,13 +22,13 @@ foreach my $id (@ARGV) {
|
||||||
close PATHS;
|
close PATHS;
|
||||||
|
|
||||||
# Also add all normal forms that are contained in these paths.
|
# Also add all normal forms that are contained in these paths.
|
||||||
open PATHS, "nix --query --generators --path @paths |" or die "nix -qg";
|
# open PATHS, "nix --query --generators --path @paths |" or die "nix -qg";
|
||||||
while (<PATHS>) {
|
# while (<PATHS>) {
|
||||||
chomp;
|
# chomp;
|
||||||
die "bad: $_" unless /^\//;
|
# die "bad: $_" unless /^\//;
|
||||||
push @paths, $_;
|
# push @paths, $_;
|
||||||
}
|
# }
|
||||||
close PATHS;
|
# close PATHS;
|
||||||
|
|
||||||
# For each path, create a Fix expression that turns the path into
|
# For each path, create a Fix expression that turns the path into
|
||||||
# a Nix archive.
|
# a Nix archive.
|
||||||
|
|
Loading…
Reference in a new issue