From 02e745ba5b3dca3b53d88a49d86f5b22d047a08d Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 30 Jan 2023 10:12:44 -0500 Subject: Separate `path.hh` from `content-address.hh` It is good to separate concerns; `StorePath` (in general) has nothing to do with `ContentAddress` anyways. This reduces the diff from #3746. --- src/libstore/path.hh | 5 ++--- src/libstore/realisation.hh | 3 +++ src/libstore/store-api.hh | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/libstore/path.hh b/src/libstore/path.hh index 6a8f027f9..1e5579b90 100644 --- a/src/libstore/path.hh +++ b/src/libstore/path.hh @@ -1,6 +1,7 @@ #pragma once -#include "content-address.hh" +#include + #include "types.hh" namespace nix { @@ -66,8 +67,6 @@ public: typedef std::set StorePathSet; typedef std::vector StorePaths; -typedef std::map> StorePathCAMap; - /* Extension of derivations in the Nix store. */ const std::string drvExtension = ".drv"; diff --git a/src/libstore/realisation.hh b/src/libstore/realisation.hh index 62561fce3..48d0283de 100644 --- a/src/libstore/realisation.hh +++ b/src/libstore/realisation.hh @@ -1,5 +1,8 @@ #pragma once +#include + +#include "hash.hh" #include "path.hh" #include #include "comparator.hh" diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 5807392a7..4d8db3596 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -87,6 +87,8 @@ enum BuildMode { bmNormal, bmRepair, bmCheck }; struct BuildResult; +typedef std::map> StorePathCAMap; + struct StoreConfig : public Config { using Config::Config; -- cgit v1.2.3