Small README updates

This commit is contained in:
Utku Demir 2022-11-26 12:17:54 +13:00
parent 6cdb1d71be
commit 3729eaed48

View File

@ -18,7 +18,7 @@ nix-env -i nix-tree
To run the current development version:
```
nix run github:utdemir/nix-tree
nix run github:utdemir/nix-tree -- --help
```
## Usage
@ -66,7 +66,7 @@ with `| xargs -o nix-tree`. Examples:
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
nix-instantiate -r | xargs -o nix-tree --derivation
# Dependencies from shell.nix
nix-build shell.nix -A inputDerivation | xargs -o nix-tree
@ -75,6 +75,16 @@ nix-build shell.nix -A inputDerivation | xargs -o nix-tree
nix-build '<nixpkgs>' -A openssl.all --no-out-link | xargs -o nix-tree
```
`nix-tree` also supports flake references:
```bash
# Build time dependencies of a flake on the current directory
nix-tree --derivation '.#'
# Same thing works for any flake reference
nix-tree --derivation 'nixpkgs#asciiquarium'
```
## Contributing
All contributions, issues and feature requests are welcome.