UC3YQDZF25LANTONKN3SM4NBFKKARRTH7KKWGGSGYQR7U3UBAD6QC #$SIG{CHLD} = 'DEFAULT'; # !!! work around system() failing if SIGCHLD is ignored#return system("nix-store --check-validity $path 2> /dev/null") == 0;# This is faster than calling nix-store, but it breaks abstraction...return -e ("/nix/var/nix/db/info/" . basename $path);
return Nix::isValidPath($path);
my $hash;my $deriver;my @refs = ();while (<FH>) {if (/^Hash: (\S+)$/) {$hash = $1;}elsif (/^Deriver: (\S+)$/) {$deriver = $1;}elsif (/^References: (.*)$/) {@refs = split / /, $1;}}close FH;die "path $path does not have a hash" unless defined $hash;