1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00
This commit is contained in:
Carlo Nucera 2020-06-01 18:53:31 -04:00
parent 0e9438b6d3
commit da39092a39
5 changed files with 47 additions and 16 deletions

View file

@ -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;