aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2022-12-12 17:32:24 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2022-12-12 17:32:24 -0500
commitd8c1c24c78ebeb1f695e29a489be567118eb073e (patch)
treeef8b2697ceb47e1ebdefdb7811b721e443854d6b /src/nix
parentc7cce3e4e1dc82c504bb4d717e55dce3b1ae008a (diff)
Adjust docs
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/nix.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nix/nix.md b/src/nix/nix.md
index 6ff27e479..529d5f796 100644
--- a/src/nix/nix.md
+++ b/src/nix/nix.md
@@ -190,11 +190,9 @@ operate are determined as follows:
# nix path-info -S '/nix/store/gzaflydcr6sb3567hap9q6srzx8ggdgg-glibc-2.33-78.drv^*'
```
-
-* If you didn't specify the desired outputs, but the derivation comes
- from an expression which has an attribute `meta.outputsToInstall`, Nix
- will use those outputs. For example, since the package
- `nixpkgs#libxml2` has this attribute:
+* If you didn't specify the desired outputs, but the derivation hs an
+ attribute `meta.outputsToInstall`, Nix will use those outputs. For
+ example, since the package `nixpkgs#libxml2` has this attribute:
```console
# nix eval 'nixpkgs#libxml2.meta.outputsToInstall'
@@ -204,6 +202,9 @@ operate are determined as follows:
a command like `nix shell nixpkgs#libxml2` will provide only those
two outputs by default.
+ Note that a store derivation (given by `.drv` file store path) doesn't have
+ any attributes like `meta`, and thus this case doesn't apply to it.
+
* Otherwise, Nix will use all outputs of the derivation.
# Nix stores