Skip to content

Avoid duplicating nixpkgs in the store harder (follow-up to #67)#125

Merged
sandydoo merged 1 commit into
cachix:mainfrom
lilyinstarlight:avoid-nixpkgs-store-duplication
May 12, 2026
Merged

Avoid duplicating nixpkgs in the store harder (follow-up to #67)#125
sandydoo merged 1 commit into
cachix:mainfrom
lilyinstarlight:avoid-nixpkgs-store-duplication

Conversation

@lilyinstarlight
Copy link
Copy Markdown

This is similar to and a follow-up to #67 but does the same for passthruFun

More or less because pkgs.path is of path type (rather than string type), doing ${pkgs.path} causes an extra copying to the store because of the way string interpolation works on paths (when it is already a store path pointing to the flake source and should not need extra copying). This should be avoided by using the path directly as a string (alternatively this could be done via pkgs.path + "/..." as well, but this matches line 299 and they are functionally equivalent in this case)

@sandydoo sandydoo merged commit 687bdb1 into cachix:main May 12, 2026
4 checks passed
@lilyinstarlight lilyinstarlight deleted the avoid-nixpkgs-store-duplication branch May 12, 2026 18:58
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