From bf65a2d07b13b93040fad0bb7ddfd2266412fdb7 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Fri, 12 Feb 2021 09:47:20 +0100 Subject: [PATCH] bambootracker: fix Darwin build --- pkgs/applications/audio/bambootracker/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/audio/bambootracker/default.nix b/pkgs/applications/audio/bambootracker/default.nix index 272f93f20994..0029b2a499f4 100644 --- a/pkgs/applications/audio/bambootracker/default.nix +++ b/pkgs/applications/audio/bambootracker/default.nix @@ -1,5 +1,6 @@ { mkDerivation , lib +, stdenv , fetchFromGitHub , qmake , pkg-config @@ -20,6 +21,11 @@ mkDerivation rec { sha256 = "0iddqfw951dw9xpl4w7310sl4z544507ppb12i8g4fzvlxfw2ifc"; }; + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' + substituteInPlace BambooTracker/BambooTracker.pro \ + --replace '# Temporary known-error downgrades here' 'CPP_WARNING_FLAGS += -Wno-missing-braces' + ''; + nativeBuildInputs = [ qmake qttools pkg-config ]; buildInputs = [ qtbase rtaudio rtmidi ];