python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / drumstick / default.nix
blob36a4c56bbaf773a2fbffc7c72a108d46dbd423e0
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
4 }:
6 stdenv.mkDerivation rec {
7   pname = "drumstick";
8   version = "2.6.1";
10   src = fetchurl {
11     url = "mirror://sourceforge/drumstick/${version}/${pname}-${version}.tar.bz2";
12     hash = "sha256-5O9yD3MexorJUm5tv6oghDb4J/b3SO10mDQR9dT2jlA=";
13   };
15   patches = [
16     ./drumstick-plugins.patch
17   ];
19   postPatch = ''
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@
26   '';
28   outputs = [ "out" "dev" "man" ];
30   nativeBuildInputs = [
31     cmake docbook_xml_dtd_45 docbook_xml_dtd_45 docbook_xsl doxygen graphviz-nox pkg-config qttools wrapQtAppsHook
32   ];
34   buildInputs = [
35     alsa-lib fluidsynth libpulseaudio qtbase qtsvg
36   ];
38   cmakeFlags = [
39     "-DUSE_DBUS=ON"
40   ];
42   meta = with lib; {
43     maintainers = [];
44     description = "MIDI libraries for Qt5/C++";
45     homepage = "https://drumstick.sourceforge.io/";
46     license = licenses.gpl2Plus;
47     platforms = platforms.linux;
48   };