From a5262fb880826d278477b77a595b571559476030 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Tue, 19 Mar 2024 17:37:04 -0700 Subject: [PATCH 1/2] Document how to build many outputs of a flake package --- src/nix/build.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/nix/build.md b/src/nix/build.md index 0fbb39cc3..4c6f6049f 100644 --- a/src/nix/build.md +++ b/src/nix/build.md @@ -40,6 +40,18 @@ R""( lrwxrwxrwx 1 … ./result-dev -> /nix/store/dkm3gwl0xrx0wrw6zi5x3px3lpgjhlw4-glibc-2.32-dev ``` +* Build all outputs: + + ```console + # nix build nixpkgs#openssl^* --print-out-paths + /nix/store/gvad6v0cmq1qccmc4wphsazqbj0xzjsl-openssl-3.0.13-bin + /nix/store/a07jqdrc8afnk8r6f3lnhh4gvab7chk4-openssl-3.0.13-debug + /nix/store/yg75achq89wgqn2fi3gglgsd77kjpi03-openssl-3.0.13-dev + /nix/store/bvdcihi8c88fw31cg6gzzmpnwglpn1jv-openssl-3.0.13-doc + /nix/store/gjqcvq47cmxazxga0cirspm3jywkmvfv-openssl-3.0.13-man + /nix/store/7nmrrad8skxr47f9hfl3xc0pfqmwq51b-openssl-3.0.13 + ``` + * Build attribute `build.x86_64-linux` from (non-flake) Nix expression `release.nix`: From 4c8a33ce468ae7b369368e6a26a3180030262f23 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Wed, 20 Mar 2024 14:42:44 -0700 Subject: [PATCH 2/2] Update src/nix/build.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> --- src/nix/build.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/build.md b/src/nix/build.md index 4c6f6049f..5dfdd44a7 100644 --- a/src/nix/build.md +++ b/src/nix/build.md @@ -43,7 +43,7 @@ R""( * Build all outputs: ```console - # nix build nixpkgs#openssl^* --print-out-paths + # nix build "nixpkgs#openssl^*" --print-out-paths /nix/store/gvad6v0cmq1qccmc4wphsazqbj0xzjsl-openssl-3.0.13-bin /nix/store/a07jqdrc8afnk8r6f3lnhh4gvab7chk4-openssl-3.0.13-debug /nix/store/yg75achq89wgqn2fi3gglgsd77kjpi03-openssl-3.0.13-dev