From fec91fd092dff0173e3716435391d7ec13ea6588 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Mon, 28 Apr 2014 15:27:40 -0500 Subject: [PATCH] fmod: 4.44.32 -> 4.44.33 Signed-off-by: Austin Seipp --- pkgs/development/libraries/fmod/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/fmod/default.nix b/pkgs/development/libraries/fmod/default.nix index ba9bb286cdfa..12480bc33ae7 100644 --- a/pkgs/development/libraries/fmod/default.nix +++ b/pkgs/development/libraries/fmod/default.nix @@ -3,16 +3,21 @@ assert (stdenv.system == "x86_64-linux") || (stdenv.system == "i686-linux"); let bits = stdenv.lib.optionalString (stdenv.system == "x86_64-linux") "64"; + + libPath = stdenv.lib.makeLibraryPath + [ stdenv.gcc.libc stdenv.gcc.gcc ] + ":${stdenv.gcc.gcc}/lib64"; + patchLib = x: "patchelf --set-rpath ${libPath} ${x}"; in stdenv.mkDerivation rec { name = "fmod-${version}"; - version = "4.44.32"; + version = "4.44.33"; src = fetchurl { - url = "http://www.fmod.org/download/fmodex/api/Linux/fmodapi44432linux.tar.gz"; - sha256 = "071m2snzz5vc5ca7dvsf6w31nrgk5k9xb6mp7yzqdj4bkjad2hyd"; + url = "http://www.fmod.org/download/fmodex/api/Linux/fmodapi44433linux.tar.gz"; + sha256 = "0s17jb7hbavglw0kiwak74ilppsalx53flc23sh4402ci7jg7qhk"; }; + dontStrip = true; buildPhase = "true"; installPhase = '' mkdir -p $out/lib $out/include/fmodex @@ -20,6 +25,9 @@ stdenv.mkDerivation rec { cd api/inc && cp * $out/include/fmodex && cd ../lib cp libfmodex${bits}-${version}.so $out/lib/libfmodex.so cp libfmodexL${bits}-${version}.so $out/lib/libfmodexL.so + + ${patchLib "$out/lib/libfmodex.so"} + ${patchLib "$out/lib/libfmodexL.so"} ''; meta = {