aboutsummaryrefslogtreecommitdiff
path: root/perl/lib/Nix/Store.pm
blob: 3e4bbee0ac57ef1567ce9e494cdded1b69982171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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(
    setVerbosity
    isValidPath queryReferences queryPathInfo queryDeriver queryPathHash
    queryPathFromHashPart
    topoSortPaths computeFSClosure followLinksToStorePath exportPaths importPaths
    hashPath hashFile hashString convertHash
    signString checkSignature
    addToStore makeFixedOutputPath
    derivationFromPath
    addTempRoot
    getBinDir getStoreDir
    queryRawRealisation
);

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__