diff options
Diffstat (limited to 'tvix/nix-compat/src')
-rw-r--r-- | tvix/nix-compat/src/derivation/mod.rs | 3 | ||||
-rw-r--r-- | tvix/nix-compat/src/derivation/output.rs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tvix/nix-compat/src/derivation/mod.rs b/tvix/nix-compat/src/derivation/mod.rs index 9b1db0f68e8b..5a59d640d65d 100644 --- a/tvix/nix-compat/src/derivation/mod.rs +++ b/tvix/nix-compat/src/derivation/mod.rs @@ -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, diff --git a/tvix/nix-compat/src/derivation/output.rs b/tvix/nix-compat/src/derivation/output.rs index b7fa1ac379b0..521ea3dedc9c 100644 --- a/tvix/nix-compat/src/derivation/output.rs +++ b/tvix/nix-compat/src/derivation/output.rs @@ -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)] |