nixpkgs/pkgs/development/libraries/drumstick/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.3 KiB
Nix
Raw Permalink Normal View History

{ 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 {
pname = "drumstick";
2024-03-22 15:49:53 +01:00
version = "2.9.0";
2016-06-30 13:54:50 +02:00
src = fetchurl {
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
};
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" ];
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
];
2017-03-12 18:55:30 +01:00
2016-06-30 13:54:50 +02:00
buildInputs = [
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
];
meta = with lib; {
2024-03-22 15:49:53 +01:00
description = "MIDI libraries for Qt/C++";
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
};
}