2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-04-26 22:30:24 +02:00
|
|
|
, cmake, docbook_xml_dtd_45, docbook_xsl, doxygen, graphviz-nox, pkg-config, qttools, wrapQtAppsHook
|
2024-03-22 15:49:53 +01:00
|
|
|
, alsa-lib, fluidsynth, libpulseaudio, qtbase, qtsvg, sonivox, qt5compat ? null
|
2016-06-30 13:54:50 +02:00
|
|
|
}:
|
|
|
|
|
2024-03-22 15:49:53 +01:00
|
|
|
let
|
|
|
|
isQt6 = lib.versions.major qtbase.version == "6";
|
|
|
|
in
|
2016-06-30 13:54:50 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "drumstick";
|
2024-03-22 15:49:53 +01:00
|
|
|
version = "2.9.0";
|
2016-06-30 13:54:50 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/drumstick/${version}/${pname}-${version}.tar.bz2";
|
2024-03-22 15:49:53 +01:00
|
|
|
hash = "sha256-p0N8EeCtVEPCGzPwiRxPdI1XT5XQ5pcKYEDJXbYYTrM=";
|
2016-06-30 13:54:50 +02:00
|
|
|
};
|
|
|
|
|
2020-11-12 04:38:19 +01:00
|
|
|
patches = [
|
|
|
|
./drumstick-plugins.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace library/rt/backendmanager.cpp --subst-var out
|
|
|
|
'';
|
|
|
|
|
2016-06-30 13:54:50 +02:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
|
2020-11-12 04:38:19 +01:00
|
|
|
nativeBuildInputs = [
|
2021-04-26 22:30:24 +02:00
|
|
|
cmake docbook_xml_dtd_45 docbook_xml_dtd_45 docbook_xsl doxygen graphviz-nox pkg-config qttools wrapQtAppsHook
|
2020-11-12 04:38:19 +01:00
|
|
|
];
|
2017-03-12 18:55:30 +01:00
|
|
|
|
2016-06-30 13:54:50 +02:00
|
|
|
buildInputs = [
|
2023-03-26 10:33:50 +02:00
|
|
|
alsa-lib fluidsynth libpulseaudio qtbase qtsvg sonivox
|
2024-03-22 15:49:53 +01:00
|
|
|
] ++ lib.optionals isQt6 [ qt5compat ];
|
2016-06-30 13:54:50 +02:00
|
|
|
|
2021-04-26 22:30:24 +02:00
|
|
|
cmakeFlags = [
|
2024-03-22 15:49:53 +01:00
|
|
|
(lib.cmakeBool "USE_DBUS" true)
|
|
|
|
(lib.cmakeBool "USE_QT5" (!isQt6))
|
2021-04-26 22:30:24 +02:00
|
|
|
];
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2024-03-22 15:49:53 +01:00
|
|
|
description = "MIDI libraries for Qt/C++";
|
2022-02-23 21:11:37 +01:00
|
|
|
homepage = "https://drumstick.sourceforge.io/";
|
2016-06-30 13:54:50 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2024-03-22 15:49:53 +01:00
|
|
|
maintainers = with maintainers; [ wegank ];
|
2017-03-12 18:55:30 +01:00
|
|
|
platforms = platforms.linux;
|
2016-06-30 13:54:50 +02:00
|
|
|
};
|
|
|
|
}
|