From 705277a96f1f6025ad3a20cd531c07c7ac57ac9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sun, 30 Apr 2023 10:47:53 +0200 Subject: [PATCH] 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 --- pkgs/development/libraries/libspatialaudio/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/libspatialaudio/default.nix b/pkgs/development/libraries/libspatialaudio/default.nix index c8d29a87a03d..a97a46f357a6 100644 --- a/pkgs/development/libraries/libspatialaudio/default.nix +++ b/pkgs/development/libraries/libspatialaudio/default.nix @@ -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++";