libspatialaudio: fix libmysofa in .pc

It got broken by libmysofa getting outputs in 2deee7991 (PR #226505).
https://hydra.nixos.org/build/217838949/nixlog/1/tail
This commit is contained in:
Vladimír Čunát 2023-04-30 10:47:53 +02:00
parent a996545f31
commit 705277a96f
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -14,6 +14,11 @@ stdenv.mkDerivation rec {
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++";