about summary refs log tree commit diff
path: root/pkgs/games/build-support/build-game.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-02-01 21:49:49 +0100
committeraszlig <aszlig@nix.build>2018-02-01 22:28:28 +0100
commit349b2a4232e2a3dfe25b7509cb9d77c7d2a10377 (patch)
treeb40221ea3f0b44ce0d9842bff5af14f5423c7caa /pkgs/games/build-support/build-game.nix
parent4af374e2c191465de99d4169376e1a9430302e82 (diff)
auto-patchelf: Move into pkgs/build-support
This is really not game-specific, so let's put it at the top-level and
also make sure we substitute all the commands we're using there, even
though a few of them are in PATH of stdenv so that it will always work
even when the programs available in stdenv should change someday.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/build-support/build-game.nix')
-rw-r--r--pkgs/games/build-support/build-game.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/games/build-support/build-game.nix b/pkgs/games/build-support/build-game.nix
index b04309a5..e4d019af 100644
--- a/pkgs/games/build-support/build-game.nix
+++ b/pkgs/games/build-support/build-game.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, file, unzip, buildSandbox
+{ stdenv, lib, file, unzip, buildSandbox, autoPatchelfHook
 
 , withPulseAudio ? true, libpulseaudio ? null
 , alsaLib
@@ -19,9 +19,7 @@ assert withPulseAudio -> libpulseaudio != null;
 buildSandbox (stdenv.mkDerivation ({
   buildInputs = [ stdenv.cc.cc ] ++ buildInputs;
 
-  nativeBuildInputs = [
-    unzip file ./setup-hooks/auto-patchelf.sh
-  ] ++ nativeBuildInputs;
+  nativeBuildInputs = [ unzip autoPatchelfHook ] ++ nativeBuildInputs;
 
   preUnpack = preUnpack + ''
     mkdir "$name"