Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 82 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ 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";instdenv.mkDerivation rec { pname = "drumstick"; version = "2.10.0";
src = fetchurl { url = "mirror://sourceforge/drumstick/${version}/${pname}-${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 = with lib; { description = "MIDI libraries for Qt/C++"; homepage = "https://drumstick.sourceforge.io/"; license = licenses.gpl2Plus; maintainers = with maintainers; [ wegank ]; platforms = platforms.linux; };}