docs(tvix/nix-compat): on store paths in fields
Change-Id: Ie78b1c49d7386c70833a3b751799993ad9121aa6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10933 Tested-by: BuildkiteCI Autosubmit: Peter Kolloch <info@eigenvalue.net> Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
3d51b20cca
commit
da3ce74f73
2 changed files with 5 additions and 0 deletions
|
@ -32,12 +32,15 @@ pub struct Derivation {
|
|||
#[serde(rename = "env")]
|
||||
pub environment: BTreeMap<String, BString>,
|
||||
|
||||
/// Map from drv path to output names used from this derivation.
|
||||
#[serde(rename = "inputDrvs")]
|
||||
pub input_derivations: BTreeMap<String, BTreeSet<String>>,
|
||||
|
||||
/// Plain store paths of additional inputs.
|
||||
#[serde(rename = "inputSrcs")]
|
||||
pub input_sources: BTreeSet<String>,
|
||||
|
||||
/// Maps output names to Output.
|
||||
pub outputs: BTreeMap<String, Output>,
|
||||
|
||||
pub system: String,
|
||||
|
|
|
@ -4,8 +4,10 @@ use crate::store_path::StorePathRef;
|
|||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::Map;
|
||||
|
||||
/// References the derivation output.
|
||||
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
|
||||
pub struct Output {
|
||||
/// Store path of build result.
|
||||
pub path: String,
|
||||
|
||||
#[serde(flatten)]
|
||||
|
|
Loading…
Reference in a new issue