Skip to content

feat(nix): add flake with package, overlay and dev shell - #15

Merged
rvben merged 1 commit into
rvben:mainfrom
mbwilding:feat/nix-flake
Oct 3, 2026
Merged

rvben merged 1 commit into
rvben:mainfrom
mbwilding:feat/nix-flake

Conversation

@mbwilding

Copy link
Copy Markdown
Contributor

Adds a Nix flake so the CLI can be installed or run with Nix.

  • packages.default builds both unifi and unifi-cli
  • overlays.default adds pkgs.unifi-cli
  • devShells.default provides the Rust toolchain
  • .envrc (use flake) for direnv
  • README section on installing with Nix

The version comes from Cargo.toml and dependencies from Cargo.lock, so releases need no flake changes. Tests are skipped in the Nix build.

Verified with nix build, nix flake check and running unifi --version and --help from the result.

Builds both binaries from Cargo.toml and Cargo.lock, so releases need no flake updates. Adds a direnv config and Nix install docs.
@rvben
rvben merged commit 7c33413 into rvben:main Oct 3, 2026
@mbwilding
mbwilding deleted the feat/nix-flake branch October 3, 2026 09:52
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.

2 participants