mirror of
https://github.com/NixOS/nix
synced 2025-07-01 04:18:00 +02:00
parent
3ac9d74eb1
commit
8914e01e37
3 changed files with 25 additions and 46 deletions
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "path.hh"
|
||||
#include <nlohmann/json_fwd.hpp>
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
@ -25,8 +26,8 @@ struct Realisation {
|
|||
DrvOutput id;
|
||||
StorePath outPath;
|
||||
|
||||
std::string to_string() const;
|
||||
static Realisation parse(const std::string & s, const std::string & whence);
|
||||
nlohmann::json toJSON() const;
|
||||
static Realisation fromJSON(const nlohmann::json& json, const std::string& whence);
|
||||
};
|
||||
|
||||
typedef std::map<DrvOutput, Realisation> DrvOutputs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue