about summary refs log tree commit diff
path: root/lib/derivations.nix
diff options
context:
space:
mode:
authorJohannes Kirschbauer <hsjobeki+github@gmail.com>2024-05-21 09:42:39 +0200
committerJohannes Kirschbauer <hsjobeki@gmail.com>2024-05-21 09:54:54 +0200
commit7f38a9ce115a87e42ac7f8afc3bd857801e26139 (patch)
treeb0eda053d23c2c05a03e1f5b4e6201cadd7afed5 /lib/derivations.nix
parent1a3afdf8526d7c30a64900d2041ebc5d1276488c (diff)
Apply suggestions from code review
Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com>
Diffstat (limited to 'lib/derivations.nix')
-rw-r--r--lib/derivations.nix32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/derivations.nix b/lib/derivations.nix
index 79e896e012c3e..9c3c4639a2689 100644
--- a/lib/derivations.nix
+++ b/lib/derivations.nix
@@ -61,31 +61,31 @@ in
         (lazyDerivation { inherit derivation }).passthru
 
         (lazyDerivation { inherit derivation }).pythonPath
+
     # Inputs
 
-    structured function argument
+    Takes an attribute set with the following attributes
 
-    : derivation
-      : The derivation to be wrapped.
+    `derivation`
+    : The derivation to be wrapped.
 
-    : meta
-      : Optional meta attribute.
+    `meta`
+    : Optional meta attribute.
 
-        While this function is primarily about derivations, it can improve
-        the `meta` package attribute, which is usually specified through
-        `mkDerivation`.
+      While this function is primarily about derivations, it can improve
+      the `meta` package attribute, which is usually specified through
+      `mkDerivation`.
 
-    : passthru
-      : Optional list of assumed outputs. Default: ["out"]
+    `passthru`
+    : Optional extra values to add to the returned attrset.
 
-        This must match the set of outputs that the returned derivation has.
-        You must use this when the derivation has multiple outputs.
+      This can be used for adding package attributes, such as `tests`.
 
-    : outputs
-      : Optional list of assumed outputs. Default: ["out"]
+    `outputs`
+    : Optional list of assumed outputs. Default: ["out"]
 
-        This must match the set of outputs that the returned derivation has.
-        You must use this when the derivation has multiple outputs.
+      This must match the set of outputs that the returned derivation has.
+      You must use this when the derivation has multiple outputs.
   */
   lazyDerivation =
     args@{