2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-04-26 21:30:24 +01:00
|
|
|
, cmake, docbook_xml_dtd_45, docbook_xsl, doxygen, graphviz-nox, pkg-config, qttools, wrapQtAppsHook
|
2020-11-12 03:38:19 +00:00
|
|
|
, alsaLib, fluidsynth, qtbase, qtsvg, libpulseaudio
|
2016-06-30 12:54:50 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "drumstick";
|
2021-06-01 19:21:24 +01:00
|
|
|
version = "2.2.1";
|
2016-06-30 12:54:50 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/drumstick/${version}/${pname}-${version}.tar.bz2";
|
2021-06-01 19:21:24 +01:00
|
|
|
sha256 = "sha256-UxXUEkO5qXPIjw99BdkAspikR9Nlu32clf28cTyf+W4=";
|
2016-06-30 12:54:50 +01:00
|
|
|
};
|
|
|
|
|
2020-11-12 03:38:19 +00:00
|
|
|
patches = [
|
|
|
|
./drumstick-plugins.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace library/rt/backendmanager.cpp --subst-var out
|
|
|
|
'';
|
|
|
|
|
2016-06-30 12:54:50 +01:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
|
2020-11-12 03:38:19 +00:00
|
|
|
nativeBuildInputs = [
|
2021-04-26 21:30:24 +01:00
|
|
|
cmake docbook_xml_dtd_45 docbook_xml_dtd_45 docbook_xsl doxygen graphviz-nox pkg-config qttools wrapQtAppsHook
|
2020-11-12 03:38:19 +00:00
|
|
|
];
|
2017-03-12 17:55:30 +00:00
|
|
|
|
2016-06-30 12:54:50 +01:00
|
|
|
buildInputs = [
|
2020-11-12 03:38:19 +00:00
|
|
|
alsaLib fluidsynth libpulseaudio qtbase qtsvg
|
2016-06-30 12:54:50 +01:00
|
|
|
];
|
|
|
|
|
2021-04-26 21:30:24 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_DBUS=ON"
|
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2021-06-01 20:11:23 +01:00
|
|
|
maintainers = [];
|
2016-06-30 12:54:50 +01:00
|
|
|
description = "MIDI libraries for Qt5/C++";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://drumstick.sourceforge.net/";
|
2016-06-30 12:54:50 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2017-03-12 17:55:30 +00:00
|
|
|
platforms = platforms.linux;
|
2016-06-30 12:54:50 +01:00
|
|
|
};
|
|
|
|
}
|