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 signString checkSignature
addToStore makeFixedOutputPath addToStore makeFixedOutputPath
derivationFromPath derivationFromPath
addTempRoot
); );
our $VERSION = '0.15'; our $VERSION = '0.15';

View file

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