705277a96f
It got broken by libmysofa getting outputs in 2deee7991
(PR #226505).
https://hydra.nixos.org/build/217838949/nixlog/1/tail
30 lines
843 B
Nix
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 ];
|
|
};
|
|
}
|