forked from lix-project/lix
Provide addTempRoot in the Perl API
Needed by Hydra.
This commit is contained in:
parent
2075ec83e3
commit
133a421bb4
|
@ -21,6 +21,7 @@ our @EXPORT = qw(
|
|||
signString checkSignature
|
||||
addToStore makeFixedOutputPath
|
||||
derivationFromPath
|
||||
addTempRoot
|
||||
);
|
||||
|
||||
our $VERSION = '0.15';
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue