mirror of
https://github.com/utdemir/nix-tree.git
synced 2024-09-11 14:55:44 +03:00
Add tips to README
This commit is contained in:
parent
1eba3ad498
commit
498b3f9be4
19
README.md
19
README.md
@ -39,6 +39,25 @@ Keybindings:
|
||||
|
||||
[home-manager]: https://github.com/rycee/home-manager
|
||||
|
||||
### Tips
|
||||
|
||||
`nix-build` prints built paths to stdout, which can be piped conveniently
|
||||
with `| xargs -o nix-tree`. Examples:
|
||||
|
||||
```bash
|
||||
# Output of a local derivation
|
||||
nix-build . --no-out-link | xargs -o nix-tree
|
||||
|
||||
# Build time dependencies (passing a `.drv` path)
|
||||
nix-instantiate --no-out-link | xargs -o nix-tree
|
||||
|
||||
# Dependencies from shell.nix
|
||||
nix-build shell.nix -A inputDerivation | xargs -o nix-tree
|
||||
|
||||
# All outputs of a derivation in nixpkgs:
|
||||
nix-build '<nixpkgs>' -A openssl.all --no-out-link | xargs -o nix-tree
|
||||
```
|
||||
|
||||
## Hacking
|
||||
|
||||
All contributions, issues and feature requests are welcome.
|
||||
|
Loading…
Reference in New Issue
Block a user