24 isQt6 = lib.versions.major qtbase.version == "6";
26 stdenv.mkDerivation rec {
31 url = "mirror://sourceforge/drumstick/${version}/${pname}-${version}.tar.bz2";
32 hash = "sha256-U5Cm9pTDxC8NzyQfjaC/eBBDUWELV4jq4ov4QGefM9g=";
35 patches = [ ./drumstick-plugins.patch ];
38 substituteInPlace library/rt/backendmanager.cpp --subst-var out
67 ] ++ lib.optionals isQt6 [ qt5compat ];
70 (lib.cmakeBool "USE_DBUS" true)
71 (lib.cmakeBool "USE_QT5" (!isQt6))
75 description = "MIDI libraries for Qt/C++";
76 homepage = "https://drumstick.sourceforge.io/";
77 license = licenses.gpl2Plus;
78 maintainers = with maintainers; [ wegank ];
79 platforms = platforms.linux;