aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorCarlo Nucera <carlo.nucera@protonmail.com>2020-06-01 17:13:11 -0400
committerCarlo Nucera <carlo.nucera@protonmail.com>2020-06-01 17:13:11 -0400
commit0cb67ecbd318a455fa4b459e29fadd0848238fca (patch)
tree77818a525fe0cdc04621ca2829d459be555d9742 /src/libstore
parentf4b89e11a4d9d6e50720fbe0db9041b6fe442cd5 (diff)
parentbcde5456cc3295061a0726881c3e441444dd6680 (diff)
Merge branch 'derivation-header-include-order' of github.com:Ericson2314/nix into validPathInfo-ca-proper-datatype
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/derivations.hh3
-rw-r--r--src/libstore/parsed-derivations.hh2
-rw-r--r--src/libstore/store-api.hh4
3 files changed, 4 insertions, 5 deletions
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh
index 46de3960e..5fc3b37da 100644
--- a/src/libstore/derivations.hh
+++ b/src/libstore/derivations.hh
@@ -1,8 +1,8 @@
#pragma once
+#include "path.hh"
#include "types.hh"
#include "hash.hh"
-#include "store-api.hh"
#include <map>
@@ -91,6 +91,7 @@ struct Derivation : BasicDerivation
class Store;
+enum RepairFlag : bool { NoRepair = false, Repair = true };
/* Write a derivation to the Nix store, and return its path. */
StorePath writeDerivation(ref<Store> store,
diff --git a/src/libstore/parsed-derivations.hh b/src/libstore/parsed-derivations.hh
index f4df5dd54..d0cc70f9c 100644
--- a/src/libstore/parsed-derivations.hh
+++ b/src/libstore/parsed-derivations.hh
@@ -1,4 +1,4 @@
-#include "derivations.hh"
+#include "store-api.hh"
#include <nlohmann/json_fwd.hpp>
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 00ecf0bd9..598798570 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -8,6 +8,7 @@
#include "sync.hh"
#include "globals.hh"
#include "config.hh"
+#include "derivations.hh"
#include <atomic>
#include <limits>
@@ -31,15 +32,12 @@ MakeError(SubstituterDisabled, Error);
MakeError(NotInStore, Error);
-struct BasicDerivation;
-struct Derivation;
class FSAccessor;
class NarInfoDiskCache;
class Store;
class JSONPlaceholder;
-enum RepairFlag : bool { NoRepair = false, Repair = true };
enum CheckSigsFlag : bool { NoCheckSigs = false, CheckSigs = true };
enum SubstituteFlag : bool { NoSubstitute = false, Substitute = true };
enum AllowInvalidFlag : bool { DisallowInvalid = false, AllowInvalid = true };