Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created March 10, 2016 00:36
Show Gist options
  • Save cleverca22/cd9c26cd6d2e0ba81fd6 to your computer and use it in GitHub Desktop.
Save cleverca22/cd9c26cd6d2e0ba81fd6 to your computer and use it in GitHub Desktop.
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc
index d9b009d..16348fb 100644
--- a/src/libstore/derivations.cc
+++ b/src/libstore/derivations.cc
@@ -55,6 +55,10 @@ bool BasicDerivation::isBuiltin() const
bool BasicDerivation::canBuildLocally() const
{
+ StringSet platforms = tokenizeString<StringSet>(settings.get("build-extra-platforms",string("")));
+
+ if (platforms.count(platform) > 0) return true;
+
return platform == settings.thisSystem
|| isBuiltin()
#if __linux__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment