Files
nixpkgs/pkgs/development/libraries/drumstick/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

83 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchurl,
cmake,
docbook_xml_dtd_45,
docbook_xsl,
doxygen,
graphviz-nox,
pkg-config,
qttools,
wrapQtAppsHook,
alsa-lib,
fluidsynth,
libpulseaudio,
qtbase,
qtsvg,
qtwayland,
sonivox,
qt5compat ? null,
}:
let
isQt6 = lib.versions.major qtbase.version == "6";
in
stdenv.mkDerivation rec {
pname = "drumstick";
version = "2.10.0";
src = fetchurl {
url = "mirror://sourceforge/drumstick/${version}/drumstick-${version}.tar.bz2";
hash = "sha256-rFoH1daXHiT3LZWQRP+buzMRQSWLJfGMgRtJ9XFy/L0=";
};
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 = [
alsa-lib
fluidsynth
libpulseaudio
qtbase
qtsvg
qtwayland
sonivox
]
++ lib.optionals isQt6 [ qt5compat ];
cmakeFlags = [
(lib.cmakeBool "USE_DBUS" true)
(lib.cmakeBool "USE_QT5" (!isQt6))
];
meta = {
description = "MIDI libraries for Qt/C++";
homepage = "https://drumstick.sourceforge.io/";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ wegank ];
platforms = lib.platforms.linux;
};
}