summary refs log tree commit diff
path: root/pkgs/development/libraries/audio
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2021-03-22 11:28:36 +0100
committerOPNA2608 <christoph.neidahl@gmail.com>2021-03-22 11:28:36 +0100
commite1bb6ce4eac378de417ef9c5c2924ee9c373e70c (patch)
tree98a5e493517a4f1873adc642eb5e508a2a68ce73 /pkgs/development/libraries/audio
parent810d22fb35287e14125470e3b917b90488ae5ed5 (diff)
downloadnixpkgs-e1bb6ce4eac378de417ef9c5c2924ee9c373e70c.tar
nixpkgs-e1bb6ce4eac378de417ef9c5c2924ee9c373e70c.tar.gz
nixpkgs-e1bb6ce4eac378de417ef9c5c2924ee9c373e70c.tar.bz2
nixpkgs-e1bb6ce4eac378de417ef9c5c2924ee9c373e70c.tar.lz
nixpkgs-e1bb6ce4eac378de417ef9c5c2924ee9c373e70c.tar.xz
nixpkgs-e1bb6ce4eac378de417ef9c5c2924ee9c373e70c.tar.zst
nixpkgs-e1bb6ce4eac378de417ef9c5c2924ee9c373e70c.zip
rtmidi: Add patch for header location
Diffstat (limited to 'pkgs/development/libraries/audio')
-rw-r--r--pkgs/development/libraries/audio/rtmidi/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/libraries/audio/rtmidi/default.nix b/pkgs/development/libraries/audio/rtmidi/default.nix
index 540e152655f..ccfafd36a8a 100644
--- a/pkgs/development/libraries/audio/rtmidi/default.nix
+++ b/pkgs/development/libraries/audio/rtmidi/default.nix
@@ -37,14 +37,16 @@ stdenv.mkDerivation rec {
       url = "https://github.com/thestk/rtmidi/pull/230/commits/7a32e23e3f6cb43c0d2d58443ce205d438e76f44.patch";
       sha256 = "06im8mb05wah6bnkadw2gpkhmilxb8p84pxqr50b205cchpq304w";
     })
+    (fetchpatch {
+      name = "RtMidi-Adjust-public-header-installs-to-match-autotools.patch";
+      url = "https://github.com/thestk/rtmidi/pull/230/commits/892fe5492f0e787484fa4a37027b08c265ce001f.patch";
+      sha256 = "0ca9m42xa3gmycimzvzvl67wa266xq9pfp1b4v555rh2fp52kbcj";
+    })
   ];
 
   postPatch = ''
     substituteInPlace rtmidi.pc.in \
       --replace 'Requires:' 'Requires.private:'
-    substituteInPlace CMakeLists.txt \
-      --replace 'PUBLIC_HEADER RtMidi.h' 'PUBLIC_HEADER "RtMidi.h;rtmidi_c.h"' \
-      --replace 'PUBLIC_HEADER DESTINATION $''\{CMAKE_INSTALL_INCLUDEDIR}' 'PUBLIC_HEADER DESTINATION $''\{CMAKE_INSTALL_INCLUDEDIR}/rtmidi'
   '';
 
   nativeBuildInputs = [ cmake pkg-config ];