aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/music.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index ff347284a5..a8b4527960 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -1184,6 +1184,19 @@ add_library( rapidjson INTERFACE IMPORTED )"))
(("boost::rational<int> duration\\(4, pos.getDurationType\\(\\)\\);")
"boost::rational<int> duration(4, static_cast<int>(pos.getDurationType()));"))
#t))
+ ;; Fix build with Qt 5.11.
+ (add-after 'unpack 'add-missing-headers
+ (lambda _
+ (substitute* (find-files "source/dialogs/" "\\.h$")
+ (("#include <QDialog>" m)
+ (string-append m "\n#include <QButtonGroup>")))
+ (substitute* "source/widgets/mixer/mixeritem.h"
+ (("#include <QWidget>" m)
+ (string-append m "\n#include <QStyle>")))
+ (substitute* "source/widgets/playback/playbackwidget.h"
+ (("#include <QWidget>" m)
+ (string-append m "\n#include <QButtonGroup>\n#include <QAction>")))
+ #t))
(add-before 'configure 'remove-third-party-libs
(lambda* (#:key inputs #:allow-other-keys)
;; Link with required static libraries, because we're not