mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
fmod: 4.44.32 -> 4.44.33
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
aaa0304a45
commit
fec91fd092
@ -3,16 +3,21 @@
|
|||||||
assert (stdenv.system == "x86_64-linux") || (stdenv.system == "i686-linux");
|
assert (stdenv.system == "x86_64-linux") || (stdenv.system == "i686-linux");
|
||||||
let
|
let
|
||||||
bits = stdenv.lib.optionalString (stdenv.system == "x86_64-linux") "64";
|
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
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "fmod-${version}";
|
name = "fmod-${version}";
|
||||||
version = "4.44.32";
|
version = "4.44.33";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.fmod.org/download/fmodex/api/Linux/fmodapi44432linux.tar.gz";
|
url = "http://www.fmod.org/download/fmodex/api/Linux/fmodapi44433linux.tar.gz";
|
||||||
sha256 = "071m2snzz5vc5ca7dvsf6w31nrgk5k9xb6mp7yzqdj4bkjad2hyd";
|
sha256 = "0s17jb7hbavglw0kiwak74ilppsalx53flc23sh4402ci7jg7qhk";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dontStrip = true;
|
||||||
buildPhase = "true";
|
buildPhase = "true";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/lib $out/include/fmodex
|
mkdir -p $out/lib $out/include/fmodex
|
||||||
@ -20,6 +25,9 @@ stdenv.mkDerivation rec {
|
|||||||
cd api/inc && cp * $out/include/fmodex && cd ../lib
|
cd api/inc && cp * $out/include/fmodex && cd ../lib
|
||||||
cp libfmodex${bits}-${version}.so $out/lib/libfmodex.so
|
cp libfmodex${bits}-${version}.so $out/lib/libfmodex.so
|
||||||
cp libfmodexL${bits}-${version}.so $out/lib/libfmodexL.so
|
cp libfmodexL${bits}-${version}.so $out/lib/libfmodexL.so
|
||||||
|
|
||||||
|
${patchLib "$out/lib/libfmodex.so"}
|
||||||
|
${patchLib "$out/lib/libfmodexL.so"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user