Provide addTempRoot in the Perl API

Needed by Hydra.
This commit is contained in:
Eelco Dolstra 2015-10-09 12:49:47 +02:00
parent 2075ec83e3
commit 133a421bb4
2 changed files with 11 additions and 0 deletions

View File

@ -21,6 +21,7 @@ our @EXPORT = qw(
signString checkSignature
addToStore makeFixedOutputPath
derivationFromPath
addTempRoot
);
our $VERSION = '0.15';

View File

@ -356,3 +356,13 @@ SV * derivationFromPath(char * drvPath)
}
OUTPUT:
RETVAL
void addTempRoot(char * storePath)
PPCODE:
try {
doInit();
store->addTempRoot(storePath);
} catch (Error & e) {
croak(e.what());
}