mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 04:56:01 +01:00
This is because with the split packages of the Meson build, we simply have no idea what directory the binaries will be installed in when we build the library. In the process of doing so, consolidate and make more sophisticated the logic to cope with a few corner cases (e.g. `NIX_BIN_DIR` exists, but no binaries are inside it). Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
45 lines
1 KiB
Perl
45 lines
1 KiB
Perl
package Nix::Store;
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
require Exporter;
|
|
|
|
our @ISA = qw(Exporter);
|
|
|
|
our %EXPORT_TAGS = ( 'all' => [ qw( ) ] );
|
|
|
|
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
|
|
|
|
our @EXPORT = qw(
|
|
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
|
|
|
|
hashPath hashFile hashString convertHash
|
|
signString checkSignature
|
|
getStoreDir
|
|
setVerbosity
|
|
);
|
|
|
|
our $VERSION = '0.15';
|
|
|
|
sub backtick {
|
|
open(RES, "-|", @_) or die;
|
|
local $/;
|
|
my $res = <RES> || "";
|
|
close RES or die;
|
|
return $res;
|
|
}
|
|
|
|
require XSLoader;
|
|
XSLoader::load('Nix::Store', $VERSION);
|
|
|
|
1;
|
|
__END__
|