depot/third_party/nixpkgs/pkgs/development/libraries/libspatialaudio/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

30 lines
843 B
Nix

{ lib, stdenv, cmake, fetchFromGitHub, libmysofa, zlib }:
stdenv.mkDerivation rec {
pname = "libspatialaudio";
version = "0.3.0";
src = fetchFromGitHub {
owner = "videolabs";
repo = "libspatialaudio";
rev = version;
hash = "sha256-sPnQPD41AceXM4uGqWXMYhuQv0TUkA6TZP8ChxUFIoI=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libmysofa zlib ];
postFixup = ''
substituteInPlace "''${!outputDev}/lib/pkgconfig/spatialaudio.pc" \
--replace '-L${lib.getDev libmysofa}' '-L${lib.getLib libmysofa}'
'';
meta = with lib; {
description =
"Ambisonic encoding / decoding and binauralization library in C++";
homepage = "https://github.com/videolabs/libspatialaudio";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ krav ];
};
}