diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2022-04-22 14:21:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 14:21:55 +0200 |
commit | 7f814d6d9af9d78f922d59115a94078f807676a8 (patch) | |
tree | fc0a5d5ff461096cb414a446d03a21cb09e3a4b7 /src/nix/build.md | |
parent | 92de62fe6f195420a6e1ae3542736e98276e283c (diff) | |
parent | 197aa2fa96d5a949fe83101e894a9151ccb80fa9 (diff) |
Merge pull request #6259 from Artturin/nixbuildaddprintstorepaths
nix build: add --print-out-paths flag
Diffstat (limited to 'src/nix/build.md')
-rw-r--r-- | src/nix/build.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nix/build.md b/src/nix/build.md index 20138b7e0..6a79f308c 100644 --- a/src/nix/build.md +++ b/src/nix/build.md @@ -25,6 +25,13 @@ R""( lrwxrwxrwx 1 … result-1 -> /nix/store/rkfrm0z6x6jmi7d3gsmma4j53h15mg33-cowsay-3.03+dfsg2 ``` +* Build GNU Hello and print the resulting store path. + + ```console + # nix build nixpkgs#hello --print-out-paths + /nix/store/v5sv61sszx301i0x6xysaqzla09nksnd-hello-2.10 + ``` + * Build a specific output: ```console |