Skip to content

Commit 75d60d7

Browse files
authored
Merge pull request #126 from Fryuni/patch-1
Recommend simpler command for pushing from flake
2 parents a2f2a18 + 01d4d5b commit 75d60d7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

source/pushing.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,14 @@ To push runtime closure of the default package in a Flake:
8585

8686
.. code:: shell-session
8787
88-
$ nix build --json \
89-
| jq -r '.[].outputs | to_entries[].value' \
88+
$ nix build --no-link --print-out-paths \
89+
| cachix push mycache
90+
91+
To push runtime closure of any set of packages in a Flake:
92+
93+
.. code:: shell-session
94+
95+
$ nix build --no-link --print-out-paths .#package-a .#package-b \
9096
| cachix push mycache
9197
9298
Note: to build all packages, leave a thumbs up on [#7165](https://github.com/NixOS/nix/issues/7165) issue.

0 commit comments

Comments
 (0)