about summary refs log tree commit diff
path: root/perl/lib/Nix/Store.xs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-10-09T10·49+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-10-09T10·49+0200
commit133a421bb40cca3a74c93b05f3abe310110c6258 (patch)
tree2fef8e6a726ab5b7bb851f2cd61a2a95dbac213b /perl/lib/Nix/Store.xs
parent2075ec83e359b9d52d1419e092c5611e408053cc (diff)
Provide addTempRoot in the Perl API
Needed by Hydra.
Diffstat (limited to 'perl/lib/Nix/Store.xs')
-rw-r--r--perl/lib/Nix/Store.xs10
1 files changed, 10 insertions, 0 deletions
diff --git a/perl/lib/Nix/Store.xs b/perl/lib/Nix/Store.xs
index d3bfa19fd846..07d81aa3ab05 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());
+        }