File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,6 @@ tracing-subscriber = { version = "0.3" }
34
34
clap = { version = " 4.5" , features = [" derive" ] }
35
35
clap_complete = " 4.5"
36
36
37
- [[bin ]]
38
- name = " nix-forecast"
39
- path = " src/main.rs"
40
-
41
- [[bin ]]
42
- name = " lix-forecast"
43
- path = " src/main.rs"
44
-
45
37
[lints .clippy ]
46
38
cargo = " warn"
47
39
complexity = " warn"
Original file line number Diff line number Diff line change @@ -53,6 +53,15 @@ nix-forecast -c ".#nixosConfigurations.myMachine"
53
53
nix-forecast -c " .#darwinConfigurations.myMac"
54
54
```
55
55
56
+ ### As a Lix subcommand
57
+
58
+ > [ !NOTE]
59
+ > Requires Lix >= 2.93
60
+
61
+ ``` sh
62
+ lix forecast nixpkgs#hello
63
+ ```
64
+
56
65
## Why?
57
66
58
67
Finding out if paths are cached can be a bit troublesome in Nix, with commands like ` nix build --dry-run `
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ rustPlatform.buildRustPackage rec {
45
45
--bash completions/nix-forecast.bash \
46
46
--fish completions/nix-forecast.fish \
47
47
--zsh completions/_nix-forecast
48
+
49
+ ln -s $out/bin/{n,l}ix-forecast
48
50
'' ;
49
51
50
52
env = {
You can’t perform that action at this time.
0 commit comments