-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
prefer-remote-fetch: use override instead of knowledge of build helper internals #457313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,9 +8,13 @@ | |||||
| cacert ? null, | ||||||
| rewriteURL, | ||||||
| hashedMirrors, | ||||||
|
|
||||||
| # Used in `pkgs/build-support/prefer-remote-fetch/default.nix` | ||||||
| preferLocalBuild ? true, | ||||||
| }: | ||||||
|
|
||||||
| let | ||||||
| cpPreferLocalBuild = preferLocalBuild; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be consistent with the rest of the PR:
Suggested change
|
||||||
|
|
||||||
| mirrors = import ./mirrors.nix // { | ||||||
| inherit hashedMirrors; | ||||||
|
|
@@ -135,7 +139,7 @@ lib.extendMkDerivation { | |||||
| passthru ? { }, | ||||||
| # Doing the download on a remote machine just duplicates network | ||||||
| # traffic, so don't do that by default | ||||||
|
Comment on lines
140
to
141
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment should be moved to where the default is now set. I.e., the |
||||||
| preferLocalBuild ? true, | ||||||
| preferLocalBuild ? cpPreferLocalBuild, | ||||||
|
|
||||||
| # Additional packages needed as part of a fetch | ||||||
| nativeBuildInputs ? [ ], | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second commit feels part of the same "logical unit" as the first, so should be squashed.