Conversation
* feat: add Nix flake with package and NixOS/nix-darwin module
- flake.nix: exposes package, overlay, nixosModules and darwinModules
- nix/package.nix: buildRustPackage derivation with Apple SDK for macOS
- nix/module.nix: declarative module with options for:
- services.kache.enable: installs the package
- services.kache.rustcWrapper: sets RUSTC_WRAPPER system-wide
- services.kache.daemon.enable: manages launchd (macOS) / systemd (Linux)
- services.kache.settings: freeform submodule that generates config.toml
with typed options for known fields and passthrough for new ones
- Same module works on both NixOS and nix-darwin
- Tests disabled in sandbox (tmutil not available in Nix build sandbox)
* fix: strip null values from settings before TOML generation
TOML has no null representation. The typed options use null as
'use kache built-in default', so these need to be filtered out
before calling tomlFormat.generate.
* perf: avoid incremental gc for daemon
In daemon mode, cwd might often be `/`, triggering a full filesystem
walk.
Prefer cleaning incremental cache dirs directly instead, for crates that
are cached with `kache`, avoiding the need for this sweep
* feat(config): KACHE_CONFIG env
* fix: coerce configFile to string for launchd EnvironmentVariables
* fix(nix): make module self-contained and restore tracked incremental GC * fix(tui): keep logs out of alternate screen * refactor(daemon): reuse a persistent store handle * perf(tui): avoid fetching entry lists off the store tab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ninja.kunobi.kache, the 10-minute daemon idle default, and correct wrapper detection when Cargo is configured viarustc-wrapperIncluded PRs