2023-02-03 18:21:47 +02:00
|
|
|
#pragma once
|
2023-04-01 06:18:41 +03:00
|
|
|
///@file
|
2023-02-03 18:21:47 +02:00
|
|
|
|
|
|
|
#include "installables.hh"
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
struct InstallableDerivedPath : Installable
|
|
|
|
{
|
|
|
|
ref<Store> store;
|
|
|
|
DerivedPath derivedPath;
|
|
|
|
|
|
|
|
InstallableDerivedPath(ref<Store> store, DerivedPath && derivedPath)
|
|
|
|
: store(store), derivedPath(std::move(derivedPath))
|
|
|
|
{ }
|
|
|
|
|
|
|
|
std::string what() const override;
|
|
|
|
|
|
|
|
DerivedPathsWithInfo toDerivedPaths() override;
|
|
|
|
|
|
|
|
std::optional<StorePath> getStorePath() override;
|
|
|
|
|
|
|
|
static InstallableDerivedPath parse(
|
|
|
|
ref<Store> store,
|
|
|
|
std::string_view prefix,
|
|
|
|
ExtendedOutputsSpec extendedOutputsSpec);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|