Skip to content

improvement(diffr): add home manager consumable flake - #1127

Open
StifflyAnyhow wants to merge 1 commit into
devdotfast:mainfrom
StifflyAnyhow:diffr/nix-flake
Open

StifflyAnyhow wants to merge 1 commit into
devdotfast:mainfrom
StifflyAnyhow:diffr/nix-flake

Conversation

@StifflyAnyhow

@StifflyAnyhow StifflyAnyhow commented Oct 14, 2026 •

Copy link
Copy Markdown

Adds a flake under diffr/ exposing the diffr CLI and a Home Manager module.

  • diffr/flake.nix — packages for aarch64/x86_64 darwin+linux, a nixpkgs overlay re-exporting the flake package, and homeManagerModules.diffr
  • diffr/package.nix — buildRustPackage derivation; version derived from Cargo.toml; source trimmed with a cleanSourceWith denylist of non-build directories; man page installed; cargoLock-based vendoring
  • diffr/home-manager-module.nix — programs.diffr.enable + programs.diffr.package (mkPackageOption defaulting to the flake's package output; no overlay or module arguments needed)

The toolchain comes from diffr's own rust-toolchain.toml via rust-bin.fromRustupToolchainFile (oxalica/rust-overlay), since nixpkgs' rustc is currently below diffr's MSRV.

Consumption:

inputs.diffr.url = "github:devdotfast/whiteboard?dir=diffr";
homeManagerModules = [ inputs.diffr.homeManagerModules.diffr ];
programs.diffr.enable = true;

Out of scope: diffr-tui (Bun-compiled TS frontend) is not packaged.

@StifflyAnyhow
StifflyAnyhow force-pushed the diffr/nix-flake branch 4 times, most recently from 4729e02 to 0706aaa Compare October 14, 2026 19:08

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant