Skip to content

[codex] Improve Nix flake and add direnv#24

Merged
cachebag merged 1 commit into
networkmanager-rs:masterfrom
colonelpanic8:codex/nix-flake-direnv
May 22, 2026
Merged

[codex] Improve Nix flake and add direnv#24
cachebag merged 1 commit into
networkmanager-rs:masterfrom
colonelpanic8:codex/nix-flake-direnv

Conversation

@colonelpanic8
Copy link
Copy Markdown
Contributor

Summary

  • expose the development shell as devShells.default while preserving the legacy devShell output
  • share GTK and system dependencies between the dev shell and package build
  • derive the package version and metadata from Cargo.toml
  • add .envrc so direnv can load the flake shell automatically

Validation

  • alejandra flake.nix
  • nix flake show --all-systems
  • nix develop --command cargo check
  • nix build
  • nix run . -- --help

@colonelpanic8 colonelpanic8 marked this pull request as ready for review May 22, 2026 03:52
Copy link
Copy Markdown
Contributor

@cachebag cachebag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cachebag cachebag enabled auto-merge May 22, 2026 11:40
@cachebag cachebag disabled auto-merge May 22, 2026 11:40
@cachebag cachebag merged commit c2df347 into networkmanager-rs:master May 22, 2026
1 check passed
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