From 133a421bb40cca3a74c93b05f3abe310110c6258 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 9 Oct 2015 12:49:47 +0200 Subject: Provide addTempRoot in the Perl API Needed by Hydra. --- perl/lib/Nix/Store.pm | 1 + perl/lib/Nix/Store.xs | 10 ++++++++++ 2 files changed, 11 insertions(+) (limited to 'perl') diff --git a/perl/lib/Nix/Store.pm b/perl/lib/Nix/Store.pm index af3d2fa2e..d226264d4 100644 --- a/perl/lib/Nix/Store.pm +++ b/perl/lib/Nix/Store.pm @@ -21,6 +21,7 @@ our @EXPORT = qw( signString checkSignature addToStore makeFixedOutputPath derivationFromPath + addTempRoot ); our $VERSION = '0.15'; diff --git a/perl/lib/Nix/Store.xs b/perl/lib/Nix/Store.xs index d3bfa19fd..07d81aa3a 100644 --- a/perl/lib/Nix/Store.xs +++ b/perl/lib/Nix/Store.xs @@ -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()); + } -- cgit v1.2.3