mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Provide addTempRoot in the Perl API
Needed by Hydra.
This commit is contained in:
parent
2075ec83e3
commit
133a421bb4
2 changed files with 11 additions and 0 deletions
|
@ -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