nixpkgs/pkgs/development/libraries/drumstick/default.nix
Ryan Mulligan a49552aaba
Merge pull request #125274 from r-ryantm/auto-update/drumstick
libsForQt5.drumstick: 2.2.0 -> 2.2.1
2021-06-01 20:23:18 -07:00

45 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl
, cmake, docbook_xml_dtd_45, docbook_xsl, doxygen, graphviz-nox, pkg-config, qttools, wrapQtAppsHook
, alsaLib, fluidsynth, qtbase, qtsvg, libpulseaudio
}:
stdenv.mkDerivation rec {
pname = "drumstick";
version = "2.2.1";
src = fetchurl {
url = "mirror://sourceforge/drumstick/${version}/${pname}-${version}.tar.bz2";
sha256 = "sha256-UxXUEkO5qXPIjw99BdkAspikR9Nlu32clf28cTyf+W4=";
};
patches = [
./drumstick-plugins.patch
];
postPatch = ''
substituteInPlace library/rt/backendmanager.cpp --subst-var out
'';
outputs = [ "out" "dev" "man" ];
nativeBuildInputs = [
cmake docbook_xml_dtd_45 docbook_xml_dtd_45 docbook_xsl doxygen graphviz-nox pkg-config qttools wrapQtAppsHook
];
buildInputs = [
alsaLib fluidsynth libpulseaudio qtbase qtsvg
];
cmakeFlags = [
"-DUSE_DBUS=ON"
];
meta = with lib; {
maintainers = [];
description = "MIDI libraries for Qt5/C++";
homepage = "http://drumstick.sourceforge.net/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}