Commit 8cd51bd9 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files
parent 2e8ab34d
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
diff --git a/porttime/ptmacosx_mach.c b/porttime/ptmacosx_mach.c
index 10c3554..712a974 100755
--- a/porttime/ptmacosx_mach.c
+++ b/porttime/ptmacosx_mach.c
@@ -12,6 +12,7 @@
 
 #include "porttime.h"
 #include "sys/time.h"
+#include "sys/qos.h"
 #include "pthread.h"
 
 #ifndef NSEC_PER_MSEC
+2 −7
Original line number Diff line number Diff line
@@ -9,13 +9,13 @@

stdenv.mkDerivation rec {
  pname = "portmidi";
  version = "2.0.6";
  version = "2.0.7";

  src = fetchFromGitHub {
    owner = "portmidi";
    repo = "portmidi";
    rev = "v${version}";
    sha256 = "sha256-ou+zN4XnR+QaWC/hzgtThVbeZ/3UVLTpZ9O+eQSGVBs=";
    sha256 = "sha256-kmyjOsjLG56Qqrf6DqgOTpt4A4aCMvCI3koiUoKzwrE=";
  };

  cmakeFlags = [
@@ -24,11 +24,6 @@ stdenv.mkDerivation rec {
    "-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release"
  ];

  patches = [
    # Add missing header include
    ./missing-header.diff
  ];

  postInstall =
    let
      ext = stdenv.hostPlatform.extensions.sharedLibrary;