2022-12-02 08:20:57 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, pkg-config
|
|
|
|
, qtbase, qttools, qtmultimedia, wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
# transports
|
|
|
|
, curl, libmms
|
|
|
|
# input plugins
|
|
|
|
, libmad, taglib, libvorbis, libogg, flac, libmpcdec, libmodplug, libsndfile
|
2022-12-02 08:20:57 +00:00
|
|
|
, libcdio, cdparanoia, libcddb, faad2, ffmpeg, wildmidi, libbs2b, game-music-emu
|
2023-03-15 16:39:30 +00:00
|
|
|
, libarchive, opusfile, soxr, wavpack
|
2020-04-24 23:36:52 +00:00
|
|
|
# output plugins
|
2023-03-15 16:39:30 +00:00
|
|
|
, alsa-lib, libpulseaudio, pipewire, libjack2
|
2020-04-24 23:36:52 +00:00
|
|
|
# effect plugins
|
|
|
|
, libsamplerate
|
|
|
|
}:
|
|
|
|
|
|
|
|
# Additional plugins that can be added:
|
|
|
|
# ProjectM visualization plugin
|
|
|
|
|
|
|
|
# To make MIDI work we must tell Qmmp what instrument configuration to use (and
|
|
|
|
# this can unfortunately not be set at configure time):
|
|
|
|
# Go to settings (ctrl-p), navigate to the WildMidi plugin and click on
|
|
|
|
# Preferences. In the instrument configuration field, type the path to
|
|
|
|
# /nix/store/*wildmidi*/etc/wildmidi.cfg (or your own custom cfg file).
|
|
|
|
|
|
|
|
# Qmmp installs working .desktop file(s) all by itself, so we don't need to
|
|
|
|
# handle that.
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "qmmp";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "2.1.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-12-02 08:20:57 +00:00
|
|
|
url = "https://qmmp.ylsoftware.com/files/qmmp/2.1/${pname}-${version}.tar.bz2";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-Jb4/KxnY1wtrUTbD+X04Wl7b9A2sZ92E/N1K+dVU95U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs =
|
|
|
|
[ # basic requirements
|
2022-12-02 08:20:57 +00:00
|
|
|
qtbase qttools qtmultimedia
|
2020-04-24 23:36:52 +00:00
|
|
|
# transports
|
|
|
|
curl libmms
|
|
|
|
# input plugins
|
|
|
|
libmad taglib libvorbis libogg flac libmpcdec libmodplug libsndfile
|
2022-12-02 08:20:57 +00:00
|
|
|
libcdio cdparanoia libcddb faad2 ffmpeg wildmidi libbs2b game-music-emu
|
2023-03-15 16:39:30 +00:00
|
|
|
libarchive opusfile soxr wavpack
|
2020-04-24 23:36:52 +00:00
|
|
|
# output plugins
|
2023-03-15 16:39:30 +00:00
|
|
|
alsa-lib libpulseaudio pipewire libjack2
|
2020-04-24 23:36:52 +00:00
|
|
|
# effect plugins
|
|
|
|
libsamplerate
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Qt-based audio player that looks like Winamp";
|
2021-05-03 20:48:10 +00:00
|
|
|
homepage = "https://qmmp.ylsoftware.com/";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|