Skip to content

Conversation

conneroisu
Copy link

This PR fixes the inefficient copy warning identified by Determinate Nix.

Changes

  • Replace src = ../.; with src = self; in nix/default.nix
  • Pass self as a parameter in the flake's callPackage

Why this fix?

The warning appeared because using ./. causes Nix to copy the entire source tree to the store again, which is inefficient. Using the flake's self input avoids this unnecessary copying and improves evaluation performance.

Testing

  • nix flake check passes
  • nix build works correctly
  • ✅ Warning is eliminated

References: https://determinate.systems/posts/changelog-determinate-nix-362/#track-down-and-fix-inefficient-double-copy-causes

…vation

As suggested by the Determinate Nix changelog, replace the relative path
reference with the flake's self input to avoid unnecessary copying to
the store. This improves evaluation performance and reduces file copies.

References: https://determinate.systems/posts/changelog-determinate-nix-362/#track-down-and-fix-inefficient-double-copy-causes
@vaxerski vaxerski requested a review from fufexan June 10, 2025 18:14
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