2021-12-17 14:16:31 +00:00
|
|
|
{ lib, stdenv, cmake, fetchFromGitHub, libmysofa, zlib }:
|
|
|
|
|
|
|
|
let version = "0.3.0";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
pname = "libspatialaudio";
|
|
|
|
inherit version;
|
|
|
|
|
2021-12-15 15:50:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "videolabs";
|
|
|
|
repo = "libspatialaudio";
|
2021-12-17 14:16:31 +00:00
|
|
|
rev = version;
|
2021-12-15 15:50:28 +00:00
|
|
|
hash = "sha256-sPnQPD41AceXM4uGqWXMYhuQv0TUkA6TZP8ChxUFIoI=";
|
|
|
|
};
|
2021-12-17 14:16:31 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libmysofa zlib ];
|
2021-12-15 15:50:28 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description =
|
|
|
|
"Ambisonic encoding / decoding and binauralization library in C++";
|
|
|
|
homepage = "https://github.com/videolabs/libspatialaudio";
|
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2021-12-17 14:16:31 +00:00
|
|
|
maintainers = with lib.maintainers; [ krav ];
|
2021-12-15 15:50:28 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|