Merge pull request #112874 from OPNA2608/fix/bambootracker-darwin/21.03

bambootracker: fix Darwin build
This commit is contained in:
Sandro 2021-02-12 16:15:16 +01:00 committed by GitHub
commit 4cfe40a5dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 ];