From afdb80c68ee9c6b6bc5c164a137a649c0f312f4f Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 11 Jun 2019 04:35:35 +0200 Subject: 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 Cc: @Profpatsch --- pkgs/games/humblebundle/fetch-humble-bundle/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/games/humblebundle/fetch-humble-bundle/default.nix') 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 = '' -- cgit 1.4.1