aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/path.hh
diff options
context:
space:
mode:
authorCarlo Nucera <carlo.nucera@protonmail.com>2020-06-01 18:53:31 -0400
committerCarlo Nucera <carlo.nucera@protonmail.com>2020-06-01 18:53:31 -0400
commitda39092a39bbcca80144041b5efc8428cc3b2e4a (patch)
tree3816bca4737a6a895d4a921c90f83abfb5d26263 /src/libstore/path.hh
parent0e9438b6d381a87946ddda8d4bdd06707f9b0a48 (diff)
WIP
Diffstat (limited to 'src/libstore/path.hh')
-rw-r--r--src/libstore/path.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstore/path.hh b/src/libstore/path.hh
index 186976855..5268b3bbf 100644
--- a/src/libstore/path.hh
+++ b/src/libstore/path.hh
@@ -1,6 +1,7 @@
#pragma once
#include "rust-ffi.hh"
+#include "file-hash.hh"
namespace nix {
@@ -87,6 +88,15 @@ const size_t storePathHashLen = 32; // i.e. 160 bits
/* Extension of derivations in the Nix store. */
const std::string drvExtension = ".drv";
+std::string to_string(FileIngestionMethod m) {
+ switch(m) {
+ case FileIngestionMethod::Flat:
+ return "false";
+ case FileIngestionMethod::Recursive:
+ return "true";
+ }
+}
+
struct StorePathWithOutputs
{
StorePath path;