Skip to content

Commit

Permalink
Merge pull request #7716 from obsidiansystems/small-storePath-cleanups
Browse files Browse the repository at this point in the history
Separate `path.hh` from `content-address.hh`
  • Loading branch information
thufschmitt authored Feb 1, 2023
2 parents b55a946 + 02e745b commit 518da6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libstore/path.hh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "content-address.hh"
#include <string_view>

#include "types.hh"

namespace nix {
Expand Down Expand Up @@ -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";

Expand Down
3 changes: 3 additions & 0 deletions src/libstore/realisation.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include <variant>

#include "hash.hh"
#include "path.hh"
#include <nlohmann/json_fwd.hpp>
#include "comparator.hh"
Expand Down
2 changes: 2 additions & 0 deletions src/libstore/store-api.hh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ enum BuildMode { bmNormal, bmRepair, bmCheck };
struct BuildResult;


typedef std::map<StorePath, std::optional<ContentAddress>> StorePathCAMap;

struct StoreConfig : public Config
{
using Config::Config;
Expand Down

0 comments on commit 518da6c

Please sign in to comment.