2011-10-10 18:12:40 +00:00
|
|
|
package Nix::Store;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
require Exporter;
|
|
|
|
|
|
|
|
our @ISA = qw(Exporter);
|
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( 'all' => [ qw( ) ] );
|
|
|
|
|
|
|
|
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
|
|
|
|
|
2011-11-29 13:01:24 +00:00
|
|
|
our @EXPORT = qw(
|
2024-01-26 20:54:33 +00:00
|
|
|
StoreWrapper
|
|
|
|
StoreWrapper::new
|
|
|
|
StoreWrapper::isValidPath StoreWrapper::queryReferences StoreWrapper::queryPathInfo StoreWrapper::queryDeriver StoreWrapper::queryPathHash
|
|
|
|
StoreWrapper::queryPathFromHashPart
|
|
|
|
StoreWrapper::topoSortPaths StoreWrapper::computeFSClosure followLinksToStorePath StoreWrapper::exportPaths StoreWrapper::importPaths
|
|
|
|
StoreWrapper::addToStore StoreWrapper::makeFixedOutputPath
|
|
|
|
StoreWrapper::derivationFromPath
|
|
|
|
StoreWrapper::addTempRoot
|
|
|
|
StoreWrapper::queryRawRealisation
|
|
|
|
|
2015-06-03 13:33:17 +00:00
|
|
|
hashPath hashFile hashString convertHash
|
2015-02-04 15:43:32 +00:00
|
|
|
signString checkSignature
|
2020-09-17 08:42:51 +00:00
|
|
|
getBinDir getStoreDir
|
2024-01-26 20:54:33 +00:00
|
|
|
setVerbosity
|
2011-11-29 13:01:24 +00:00
|
|
|
);
|
2011-10-10 18:12:40 +00:00
|
|
|
|
|
|
|
our $VERSION = '0.15';
|
|
|
|
|
2012-05-10 23:03:23 +00:00
|
|
|
sub backtick {
|
|
|
|
open(RES, "-|", @_) or die;
|
|
|
|
local $/;
|
|
|
|
my $res = <RES> || "";
|
|
|
|
close RES or die;
|
|
|
|
return $res;
|
|
|
|
}
|
|
|
|
|
2020-09-17 08:42:51 +00:00
|
|
|
require XSLoader;
|
|
|
|
XSLoader::load('Nix::Store', $VERSION);
|
2011-10-10 18:12:40 +00:00
|
|
|
|
|
|
|
1;
|
|
|
|
__END__
|