File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ nix-env -i nix-tree
18
18
To run the current development version:
19
19
20
20
```
21
- nix run github:utdemir/nix-tree
21
+ nix run github:utdemir/nix-tree -- --help
22
22
```
23
23
24
24
## Usage
@@ -66,7 +66,7 @@ with `| xargs -o nix-tree`. Examples:
66
66
nix-build . --no-out-link | xargs -o nix-tree
67
67
68
68
# 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
70
70
71
71
# Dependencies from shell.nix
72
72
nix-build shell.nix -A inputDerivation | xargs -o nix-tree
@@ -75,6 +75,16 @@ nix-build shell.nix -A inputDerivation | xargs -o nix-tree
75
75
nix-build ' <nixpkgs>' -A openssl.all --no-out-link | xargs -o nix-tree
76
76
```
77
77
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
+
78
88
## Contributing
79
89
80
90
All contributions, issues and feature requests are welcome.
You can’t perform that action at this time.
0 commit comments