Skip to content

devex: add nix tooling for reproducible builds#88

Open
x10an14-nav wants to merge 1 commit into
softwaremill:mainfrom
nais:nixify
Open

devex: add nix tooling for reproducible builds#88
x10an14-nav wants to merge 1 commit into
softwaremill:mainfrom
nais:nixify

Conversation

@x10an14-nav

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings June 26, 2026 14:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

  • Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.

Pull request overview

Adds Nix flake tooling to make klag-exporter builds and the developer environment reproducible across systems, aligning local dev and CI-like builds via pinned nixpkgs/overlays.

Changes:

  • Introduces a flake.nix that builds the Rust package via buildRustPackage and provides a default devShell.
  • Adds flake.lock pinning nixpkgs, flake-utils, and rust-overlay for reproducible evaluation.
  • Updates .gitignore to exclude direnv artifacts, Nix result* outputs, and .env* files.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

File Description
flake.nix Defines the pinned Nix build for the Rust package and a default dev shell.
flake.lock Locks flake inputs to fixed revisions for reproducibility.
.gitignore Ignores direnv directory, Nix build result symlinks, and .env* files.
Files excluded by content exclusion policy (1)
  • .envrc

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@x10an14-nav x10an14-nav mentioned this pull request Jun 26, 2026
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