From 6f691051994ec6430b811582ff1a5fe4174928cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 27 Sep 2022 18:19:42 +0200 Subject: [PATCH] libmt32emu: fixup path in .pc file --- pkgs/applications/audio/munt/libmt32emu.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/audio/munt/libmt32emu.nix b/pkgs/applications/audio/munt/libmt32emu.nix index fdd9e6fac89d..d8b2ae1510cc 100644 --- a/pkgs/applications/audio/munt/libmt32emu.nix +++ b/pkgs/applications/audio/munt/libmt32emu.nix @@ -28,6 +28,12 @@ stdenv.mkDerivation rec { "-Dmunt_WITH_MT32EMU_QT=OFF" ]; + postFixup = '' + substituteInPlace "$dev"/lib/pkgconfig/mt32emu.pc \ + --replace '=''${exec_prefix}//' '=/' \ + --replace "$dev/$dev/" "$dev/" + ''; + meta = with lib; { homepage = "http://munt.sourceforge.net/"; description = "A library to emulate Roland MT-32, CM-32L, CM-64 and LAPC-I devices";