cleverca22
3/10/2016 - 12:36 AM

nix.patch

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__