Skip to content

Commit 75f9c57

Browse files
committed
fix(nix): include CLI command help spec
The extracted ccusage-cli build script now reads src/cli-commands.json in addition to src/cli-help.json. Crane source filtering already kept cli-help.json but did not include the new command spec, so Nix package builds failed before the build script could generate help data. Include cli-commands.json in the filtered Rust source. Validation: env NIX_CONFIG="access-tokens = github.com=$(gh auth token)" nix build .#ccusage --no-link; direnv exec . pnpm run format; direnv exec . env -u CFLAGS cargo check --manifest-path rust/Cargo.toml -p ccusage-cli -p ccusage.
1 parent 7e21dca commit 75f9c57

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎package.nix‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ let
1616
path: type:
1717
(craneLib.filterCargoSources path type)
1818
|| lib.hasSuffix "/cli-help.json" path
19+
|| lib.hasSuffix "/cli-commands.json" path
1920
|| lib.hasSuffix "/fast-multiplier-overrides.json" path;
2021
};
2122
commonArgs = {

0 commit comments

Comments
 (0)