about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2019-06-11 04:35:35 +0200
committeraszlig <aszlig@nix.build>2019-06-11 04:35:35 +0200
commitafdb80c68ee9c6b6bc5c164a137a649c0f312f4f (patch)
tree3badf461fa558b7d83cda3eca3ab67dce0781ead /pkgs/games
parent8952c086e2ec2f9704c55c525b705b334a8daf40 (diff)
games: Use preferLocalBuild for fetchers
If we're on a machine with remote builds enabled, we'd like to prefer
not having our login credentials to be pushed on a remote server.

We of course also don't want the actual games to end up on a different
machine, so let's use preferLocalBuild to avoid this.

Unfortunately avoidance is not at any cost, because if we for example
use a different system attribute, it might be built on a remote machine
nevertheless. Ideally there would be something like "forceLocalBuild",
which avoids remote builds at any cost.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @Profpatsch
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/gog/fetch-gog/default.nix3
-rw-r--r--pkgs/games/humblebundle/fetch-humble-bundle/default.nix2
-rw-r--r--pkgs/games/itch/fetch-itch/default.nix1
-rw-r--r--pkgs/games/steam/fetchsteam/default.nix1
4 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/games/gog/fetch-gog/default.nix b/pkgs/games/gog/fetch-gog/default.nix
index 31b4cd38..d4a35a05 100644
--- a/pkgs/games/gog/fetch-gog/default.nix
+++ b/pkgs/games/gog/fetch-gog/default.nix
@@ -150,6 +150,7 @@ let
   in runCommandCC "get-captcha" {
     nativeBuildInputs = [ pkgconfig ];
     buildInputs = [ qt5.qtbase qt5.qtwebengine ];
+    preferLocalBuild = true;
   } ''
     g++ $(pkg-config --libs --cflags Qt5WebEngineWidgets Qt5WebEngine) \
       -Wall -std=c++11 -o "$out" ${application}
@@ -284,6 +285,8 @@ in stdenv.mkDerivation {
   outputHashAlgo = "sha256";
   outputHash = sha256;
 
+  preferLocalBuild = true;
+
   nativeBuildInputs = [
     curl python3Packages.tabulate python3Packages.MechanicalSoup
   ];
diff --git a/pkgs/games/humblebundle/fetch-humble-bundle/default.nix b/pkgs/games/humblebundle/fetch-humble-bundle/default.nix
index 063d4a02..f6f161dc 100644
--- a/pkgs/games/humblebundle/fetch-humble-bundle/default.nix
+++ b/pkgs/games/humblebundle/fetch-humble-bundle/default.nix
@@ -80,6 +80,7 @@
   in runCommandCC "get-captcha" {
     nativeBuildInputs = [ pkgconfig ];
     buildInputs = [ qt5.qtbase qt5.qtwebengine ];
+    preferLocalBuild = true;
   } ''
     g++ $(pkg-config --libs --cflags Qt5WebEngineWidgets Qt5WebEngine) \
       -Wall -std=c++11 -o "$out" ${application}
@@ -183,6 +184,7 @@ in stdenv.mkDerivation {
   outputHashAlgo = "md5";
   outputHash = md5;
 
+  preferLocalBuild = true;
   buildInputs = [ python humbleAPI ];
 
   buildCommand = ''
diff --git a/pkgs/games/itch/fetch-itch/default.nix b/pkgs/games/itch/fetch-itch/default.nix
index 3700f5c6..121868be 100644
--- a/pkgs/games/itch/fetch-itch/default.nix
+++ b/pkgs/games/itch/fetch-itch/default.nix
@@ -69,6 +69,7 @@ in stdenv.mkDerivation {
 
   SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
 
+  preferLocalBuild = true;
   nativeBuildInputs = [ python3Packages.python ];
 
   buildCommand = ''
diff --git a/pkgs/games/steam/fetchsteam/default.nix b/pkgs/games/steam/fetchsteam/default.nix
index 5c1faf55..646e0a14 100644
--- a/pkgs/games/steam/fetchsteam/default.nix
+++ b/pkgs/games/steam/fetchsteam/default.nix
@@ -79,6 +79,7 @@ let
 in with stdenv.lib; runCommand "${name}-src" {
   buildInputs = [ DepotDownloader ];
   inherit username password appId depotId manifestId;
+  preferLocalBuild = true;
   outputHashAlgo = "sha256";
   outputHash = sha256;
   outputHashMode = "recursive";