mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
WIP
This commit is contained in:
parent
0e9438b6d3
commit
da39092a39
5 changed files with 47 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue