1 { lib, stdenv, fetchurl, cmake, pkg-config
2 , qtbase, qttools, qtmultimedia, wrapQtAppsHook
6 , libmad, taglib, libvorbis, libogg, flac, libmpcdec, libmodplug, libsndfile
7 , libcdio, cdparanoia, libcddb, faad2, ffmpeg, wildmidi, libbs2b, game-music-emu
8 , libarchive, opusfile, soxr, wavpack
10 , alsa-lib, libpulseaudio, pipewire, libjack2
15 # Additional plugins that can be added:
16 # ProjectM visualization plugin
18 # To make MIDI work we must tell Qmmp what instrument configuration to use (and
19 # this can unfortunately not be set at configure time):
20 # Go to settings (ctrl-p), navigate to the WildMidi plugin and click on
21 # Preferences. In the instrument configuration field, type the path to
22 # /nix/store/*wildmidi*/etc/wildmidi.cfg (or your own custom cfg file).
24 # Qmmp installs working .desktop file(s) all by itself, so we don't need to
27 stdenv.mkDerivation rec {
32 url = "https://qmmp.ylsoftware.com/files/qmmp/2.1/${pname}-${version}.tar.bz2";
33 hash = "sha256-hGphQ8epqym47C9doiSOQd3yc28XwV2UsNc7ivhaae4=";
36 nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
39 [ # basic requirements
40 qtbase qttools qtmultimedia
44 libmad taglib libvorbis libogg flac libmpcdec libmodplug libsndfile
45 libcdio cdparanoia libcddb faad2 ffmpeg wildmidi libbs2b game-music-emu
46 libarchive opusfile soxr wavpack
48 alsa-lib libpulseaudio pipewire libjack2
54 description = "Qt-based audio player that looks like Winamp";
56 homepage = "https://qmmp.ylsoftware.com/";
57 license = licenses.gpl2Plus;
58 platforms = platforms.linux;
59 maintainers = [ maintainers.bjornfor ];