1 { lib, stdenv, fetchurl
2 , cmake, docbook_xml_dtd_45, docbook_xsl, doxygen, graphviz-nox, pkg-config, qttools, wrapQtAppsHook
3 , alsa-lib, fluidsynth, qtbase, qtsvg, libpulseaudio
6 stdenv.mkDerivation rec {
11 url = "mirror://sourceforge/drumstick/${version}/${pname}-${version}.tar.bz2";
12 hash = "sha256-5O9yD3MexorJUm5tv6oghDb4J/b3SO10mDQR9dT2jlA=";
16 ./drumstick-plugins.patch
20 substituteInPlace library/rt/backendmanager.cpp --subst-var out
22 # https://sourceforge.net/p/drumstick/bugs/39/
23 substituteInPlace drumstick-alsa.pc.in drumstick-file.pc.in drumstick-rt.pc.in drumstick-widgets.pc.in \
24 --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
25 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
28 outputs = [ "out" "dev" "man" ];
31 cmake docbook_xml_dtd_45 docbook_xml_dtd_45 docbook_xsl doxygen graphviz-nox pkg-config qttools wrapQtAppsHook
35 alsa-lib fluidsynth libpulseaudio qtbase qtsvg
44 description = "MIDI libraries for Qt5/C++";
45 homepage = "https://drumstick.sourceforge.io/";
46 license = licenses.gpl2Plus;
47 platforms = platforms.linux;