Skip to content

[0.0.27] fix(nix): lock flake dependencies with crane and harden Cachix CD (#2515) - #2554

Merged
Xuepoo merged 1 commit into
mainfrom
cmd/nix-crane-lock
Oct 23, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
cmd/nix-crane-lock

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Lock flake inputs using authentic SRI narHashes and align flake.nix with Crane and rust-overlay official best practices:

  • Resolve rustToolchain from ./rust-toolchain.toml via pkgs.rust-bin.fromRustupToolchainFile (single source of truth; avoids hardcoded channel and single-arch targets)
  • Switch nixpkgs input to nixpkgs-unstable and remove nonexistent crane.inputs.nixpkgs.follows
  • Clean source via craneLib.cleanCargoSource ./.
  • Generate valid, cryptographically verified flake.lock (resolving crane, flake-utils, systems, nixpkgs, rust-overlay)
  • Harden .github/workflows/release.yml with access-tokens (protecting against unauthenticated rate limits) and extraPullNames: nix-community

Priority: P1 | Area: area:package | Labels: fix, P1, area:package | Milestone: v0.0.27 | RFC: OQ-pkg-nix | Task: CTX-1453
Closes #2515

@Xuepoo Xuepoo added this to the v0.0.27 milestone Oct 23, 2026
@Xuepoo Xuepoo added fix Bug fix P1 Priority: high area:package Area: package lifecycle labels Oct 23, 2026
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8b0511bf-40b5-4d2b-98d4-19f403eca5a3
📥 Commits

Reviewing files that changed from the base of the PR and between d014721 and b062939.

⛔ Files ignored due to path filters: 1
  • flake.lock is excluded by !**/*.lock
📒 Files selected for processing: 2
  • .github/workflows/release.yml
  • flake.nix
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:package Area: package lifecycle fix Bug fix P1 Priority: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[0.0.27] packaging: Nix / NixOS Flake Cachix binary cache and nixpkgs derivation

1 participant