about summary refs log tree commit diff
path: root/pkgs/applications/audio/munt
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2022-09-27 18:19:42 +0200
committerVladimír Čunát <vladimir.cunat@nic.cz>2022-09-27 18:20:02 +0200
commit6f691051994ec6430b811582ff1a5fe4174928cf (patch)
tree00cdbbf574f8b73fdbdaf4cd733fba72da5f04b6 /pkgs/applications/audio/munt
parent31b9ecf449812a77d7a0f708d25cd2b8c1993f98 (diff)
libmt32emu: fixup path in .pc file
Diffstat (limited to 'pkgs/applications/audio/munt')
-rw-r--r--pkgs/applications/audio/munt/libmt32emu.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/audio/munt/libmt32emu.nix b/pkgs/applications/audio/munt/libmt32emu.nix
index fdd9e6fac89d8..d8b2ae1510cc3 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";