Skip to content

Commit 3729eae

Browse files
committed
Small README updates
1 parent 6cdb1d7 commit 3729eae

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Diff for: README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ nix-env -i nix-tree
1818
To run the current development version:
1919

2020
```
21-
nix run github:utdemir/nix-tree
21+
nix run github:utdemir/nix-tree -- --help
2222
```
2323

2424
## Usage
@@ -66,7 +66,7 @@ with `| xargs -o nix-tree`. Examples:
6666
nix-build . --no-out-link | xargs -o nix-tree
6767

6868
# Build time dependencies (passing a `.drv` path)
69-
nix-instantiate --no-out-link | xargs -o nix-tree
69+
nix-instantiate -r | xargs -o nix-tree --derivation
7070

7171
# Dependencies from shell.nix
7272
nix-build shell.nix -A inputDerivation | xargs -o nix-tree
@@ -75,6 +75,16 @@ nix-build shell.nix -A inputDerivation | xargs -o nix-tree
7575
nix-build '<nixpkgs>' -A openssl.all --no-out-link | xargs -o nix-tree
7676
```
7777

78+
`nix-tree` also supports flake references:
79+
80+
```bash
81+
# Build time dependencies of a flake on the current directory
82+
nix-tree --derivation '.#'
83+
84+
# Same thing works for any flake reference
85+
nix-tree --derivation 'nixpkgs#asciiquarium'
86+
```
87+
7888
## Contributing
7989

8090
All contributions, issues and feature requests are welcome.

0 commit comments

Comments
 (0)