aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/path.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-30 10:12:44 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-30 10:14:03 -0500
commit02e745ba5b3dca3b53d88a49d86f5b22d047a08d (patch)
treed1427c04c97730eac797ed8e9f6614f3c2da0850 /src/libstore/path.hh
parenta31d7d4e5e5eeeb7ca12ca798dc383045e5be1a1 (diff)
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.
Diffstat (limited to 'src/libstore/path.hh')
-rw-r--r--src/libstore/path.hh5
1 files changed, 2 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 <string_view>
+
#include "types.hh"
namespace nix {
@@ -66,8 +67,6 @@ public:
typedef std::set<StorePath> StorePathSet;
typedef std::vector<StorePath> StorePaths;
-typedef std::map<StorePath, std::optional<ContentAddress>> StorePathCAMap;
-
/* Extension of derivations in the Nix store. */
const std::string drvExtension = ".drv";