about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-01-04T12·35+0100
committerflokli <flokli@flokli.de>2023-01-04T20·23+0000
commit468dc5cd0ce34310a93934c03fcc8f755002cefd (patch)
tree5dcc21b2fa6eb610229c9047444bc1cb140eac25 /tvix
parentf00e7fa92d67c8f7e07939734975dfee780a303f (diff)
feat(tvix/derivation): make struct members public r/5588
Allow others to peek into values. We should probably still restrict
this further at a later point.

Change-Id: I2831432038aa87c3c7dcc85af4fa76a4fe0eadff
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7745
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix')
-rw-r--r--tvix/derivation/src/derivation.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/tvix/derivation/src/derivation.rs b/tvix/derivation/src/derivation.rs
index d6a5dc76b74a..bed2cc74b29b 100644
--- a/tvix/derivation/src/derivation.rs
+++ b/tvix/derivation/src/derivation.rs
@@ -9,13 +9,13 @@ use tvix_store::nixpath::STORE_DIR;
 
 #[derive(Serialize, Deserialize)]
 pub struct Derivation {
-    outputs: BTreeMap<String, Output>,
-    input_sources: Vec<String>,
-    input_derivations: BTreeMap<String, Vec<String>>,
-    platform: String,
-    builder: String,
-    arguments: Vec<String>,
-    environment: BTreeMap<String, String>,
+    pub outputs: BTreeMap<String, Output>,
+    pub input_sources: Vec<String>,
+    pub input_derivations: BTreeMap<String, Vec<String>>,
+    pub platform: String,
+    pub builder: String,
+    pub arguments: Vec<String>,
+    pub environment: BTreeMap<String, String>,
 }
 
 impl Derivation {