mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
62793a007d
This installs the headers in a fashion which matches Gentoo, and it also changes the version numbering scheme as well to match, so hopefully Nixpkgs Monitor can provide security tracking updates or anything (although technically Gentoo is outdated!) [Bjørn: add github pull-request cover letter to commit message; it contains useful info.] Signed-off-by: Austin Seipp <aseipp@pobox.com>
33 lines
1 KiB
Nix
33 lines
1 KiB
Nix
{ stdenv, fetchurl }:
|
|
|
|
assert (stdenv.system == "x86_64-linux") || (stdenv.system == "i686-linux");
|
|
let
|
|
bits = stdenv.lib.optionalString (stdenv.system == "x86_64-linux") "64";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "fmod-${version}";
|
|
version = "4.44.32";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.fmod.org/download/fmodex/api/Linux/fmodapi44432linux.tar.gz";
|
|
sha256 = "071m2snzz5vc5ca7dvsf6w31nrgk5k9xb6mp7yzqdj4bkjad2hyd";
|
|
};
|
|
|
|
buildPhase = "true";
|
|
installPhase = ''
|
|
mkdir -p $out/lib $out/include/fmodex
|
|
|
|
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
|
|
'';
|
|
|
|
meta = {
|
|
description = "Programming library and toolkit for the creation and playback of interactive audio";
|
|
homepage = "http://www.fmod.org/";
|
|
license = stdenv.lib.licenses.unfreeRedistributable;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|