Skip to content

feat: preferLocalBuild#110

Merged
vic merged 1 commit into
denful:mainfrom
dtomvan:dtomvan/push-kmqyllmmnmyx
May 1, 2026
Merged

feat: preferLocalBuild#110
vic merged 1 commit into
denful:mainfrom
dtomvan:dtomvan/push-kmqyllmmnmyx

Conversation

@dtomvan
Copy link
Copy Markdown
Contributor

@dtomvan dtomvan commented May 1, 2026

The apps exported like write-flake are written in a way that nix will first try to reach out to caches and remote builders before performing a local build. This is very annoying since it slows down the build a lot, especially if you have a lot of caches (nix-community.cachix.org, cache.garnix.io, etc.). But caches and remote builders will never be able to serve these, so it is pointless in even trying.

This patch adds preferLocalBuild to all runCommand's and mkDerivation's I found with rg.

The apps exported like `write-flake` are written in a way that nix will first
try to reach out to caches and remote builders before performing a local build.
This is very annoying since it slows down the build a lot, especially if you
have a lot of caches (nix-community.cachix.org, cache.garnix.io, etc.). But
caches and remote builders will never be able to serve these, so it is
pointless in even trying.

This patch adds preferLocalBuild to all `runCommand`'s and `mkDerivation`'s
I found with `rg`.
@vic vic merged commit 04ca28c into denful:main May 1, 2026
12 checks passed
@vic
Copy link
Copy Markdown
Member

vic commented May 1, 2026

thanks!

@dtomvan dtomvan deleted the dtomvan/push-kmqyllmmnmyx branch May 2, 2026 07:17
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