Merge pull request #10271 from jonringer/document-flake-multiple-outputs

Document how to build many outputs of a flake package
This commit is contained in:
Théophane Hufschmitt 2024-03-21 15:58:32 +01:00 committed by GitHub
commit 039b3fbdfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`: