about summary refs log tree commit diff
path: root/pkgs/games/build-support
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-02-22 05:14:16 +0100
committeraszlig <aszlig@nix.build>2018-02-22 05:14:16 +0100
commitb8a4e6b26a2451eeab0c0da5a074d07348e763b6 (patch)
tree2e9f77b26103a55d142a171841cdfdc24f02de5f /pkgs/games/build-support
parented298980c48f3c71ec15b91fe7779d8e89639f2a (diff)
build-game: Remove installCheckPhase
This is quite redundant because autoPatchelfHook already scans all
shared objects and executables for dependencies and bails out with an
error if a dependency isn't found, which is similar to what we're doing
in installCheckPhase.

Removing this should also speed up builds, especially those with lots of
files.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/build-support')
-rw-r--r--pkgs/games/build-support/build-game.nix32
1 files changed, 1 insertions, 31 deletions
diff --git a/pkgs/games/build-support/build-game.nix b/pkgs/games/build-support/build-game.nix
index b06537c5..5c1f1ef4 100644
--- a/pkgs/games/build-support/build-game.nix
+++ b/pkgs/games/build-support/build-game.nix
@@ -10,7 +10,6 @@ assert withPulseAudio -> libpulseaudio != null;
 , nativeBuildInputs ? []
 , preUnpack ? ""
 , setSourceRoot ? ""
-, installCheckPhase ? ""
 , runtimeDependencies ? []
 , sandbox ? {}
 , ...
@@ -43,40 +42,11 @@ buildSandbox (stdenv.mkDerivation ({
         ++ runtimeDependencies;
   in map (dep: dep.lib or dep) deps;
 
-  doInstallCheck = true;
-
-  installCheckPhase = ''
-    runHook preInstallCheck
-
-    echo "checking dependencies for libraries and executables" >&2
-
-    checkElfDep() {
-        local errors ldout="$(ldd "$1" 2> /dev/null)"
-        if errors="$(echo "$ldout" | grep -F "not found")"; then
-            echo -e "Library dependencies missing for $1:\n$errors"
-        fi
-    }
-
-    local errors="$(
-        IFS=$'\n'
-        for elf in $(findElfs "$prefix"); do checkElfDep "$elf"; done
-    )"
-
-    if [ -n "$errors" ]; then
-        echo "$errors" >&2
-        exit 1
-    fi
-
-    ${installCheckPhase}
-
-    runHook postInstallCheck
-  '';
-
   dontStrip = true;
   dontPatchELF = true;
 } // removeAttrs attrs [
   "buildInputs" "nativeBuildInputs" "preUnpack" "setSourceRoot"
-  "installCheckPhase" "runtimeDependencies" "sandbox"
+  "runtimeDependencies" "sandbox"
 ])) (sandbox // {
   paths = let
     paths = sandbox.paths or {};