aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2023-03-02 19:56:27 +0100
committerGitHub <noreply@github.com>2023-03-02 19:56:27 +0100
commit8730d3002f9834a1c9c45bc50fd4c46458ae6eef (patch)
treefefb6d3346fca06513744ffd42d34ff1add0ca14 /doc
parent3a2b3af82428dd691b1871243e44daeff9920fb4 (diff)
parent1f394d2107fd2de511ab95516c1ea77f31a2baaa (diff)
Merge pull request #7594 from nrdxp/paths-from-stdin
feat: read installable paths from stdin
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/src/command-ref/nix-store.md5
-rw-r--r--doc/manual/src/release-notes/rl-next.md6
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/manual/src/command-ref/nix-store.md b/doc/manual/src/command-ref/nix-store.md
index 31fdd7806..17cbd0461 100644
--- a/doc/manual/src/command-ref/nix-store.md
+++ b/doc/manual/src/command-ref/nix-store.md
@@ -54,6 +54,11 @@ have an effect.
created by sequentially numbering symlinks beyond the first one
(e.g., `foo`, `foo-2`, `foo-3`, and so on).
+ - <span id="opt-stdin">[`--stdin`](#opt-stdin)</span>
+
+ Read *paths…* from the standard input.
+ Useful for chaining nix-store commands.
+
# Operation `--realise`
## Synopsis
diff --git a/doc/manual/src/release-notes/rl-next.md b/doc/manual/src/release-notes/rl-next.md
index 091d12b7e..c78b20eed 100644
--- a/doc/manual/src/release-notes/rl-next.md
+++ b/doc/manual/src/release-notes/rl-next.md
@@ -1,5 +1,9 @@
# Release X.Y (202?-??-??)
+* Commands which take installables on the command line can now read them from the standard input if
+ passed the `--stdin` flag. This is primarily useful when you have a large amount of paths which
+ exceed the OS arg limit.
+
* The special handling of an [installable](../command-ref/new-cli/nix.md#installables) with `.drv` suffix being interpreted as all of the given [store derivation](../glossary.md#gloss-store-derivation)'s output paths is removed, and instead taken as the literal store path that it represents.
The new `^` syntax for store paths introduced in Nix 2.13 allows explicitly referencing output paths of a derivation.
@@ -15,4 +19,4 @@
```shell-session
$ nix path-info /nix/store/gzaflydcr6sb3567hap9q6srzx8ggdgg-glibc-2.33-78.drv^*
```
- provides information about each of its outputs.
+ provides information about each of its outputs. \ No newline at end of file