aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/derivations.hh
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2020-03-21 11:07:16 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-03-24 20:39:45 +0000
commitbcde5456cc3295061a0726881c3e441444dd6680 (patch)
tree5112b85627bd2faff1bd79a39433bd8c627ee39e /src/libstore/derivations.hh
parent0a10854f857e519d1455ff0f0be1f8401c40a11c (diff)
Flip dependency so store-api.hh includes derivations.hh
I think it makes more sense to define the data model (derivations), before the operations (store api).
Diffstat (limited to 'src/libstore/derivations.hh')
-rw-r--r--src/libstore/derivations.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh
index 7222d25e5..a3651de23 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>
@@ -76,6 +76,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,