2021-01-25 08:26:54 +00:00
|
|
|
{ lib, mkDerivation, fetchurl, cmake, pkg-config, xlibsWrapper
|
2016-08-25 10:18:55 +01:00
|
|
|
, qtbase, qttools, qtmultimedia, qtx11extras
|
2013-05-19 12:18:37 +01:00
|
|
|
# transports
|
|
|
|
, curl, libmms
|
|
|
|
# input plugins
|
|
|
|
, libmad, taglib, libvorbis, libogg, flac, libmpcdec, libmodplug, libsndfile
|
2021-04-27 13:16:05 +01:00
|
|
|
, libcdio, cdparanoia, libcddb, faad2, ffmpeg, wildmidi
|
2013-05-19 12:18:37 +01:00
|
|
|
# output plugins
|
2021-06-10 03:57:09 +01:00
|
|
|
, alsa-lib, libpulseaudio
|
2013-05-19 12:18:37 +01:00
|
|
|
# effect plugins
|
|
|
|
, libsamplerate
|
|
|
|
}:
|
|
|
|
|
|
|
|
# Additional plugins that can be added:
|
2021-01-26 00:33:42 +00:00
|
|
|
# wavpack (https://www.wavpack.com/)
|
2013-05-19 12:18:37 +01:00
|
|
|
# gme (Game music support)
|
|
|
|
# Ogg Opus support
|
|
|
|
# BS2B effect plugin (http://bs2b.sourceforge.net/)
|
|
|
|
# JACK audio support
|
|
|
|
# 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.
|
|
|
|
|
2019-09-02 19:34:36 +01:00
|
|
|
mkDerivation rec {
|
2021-06-20 11:34:30 +01:00
|
|
|
pname = "qmmp";
|
|
|
|
version = "1.4.4";
|
2013-05-19 12:18:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-20 11:34:30 +01:00
|
|
|
url = "https://qmmp.ylsoftware.com/files/${pname}-${version}.tar.bz2";
|
2021-03-09 09:20:34 +00:00
|
|
|
sha256 = "sha256-sZRZVhCf2ceETuV4AULA0kVkuIMn3C+aYdKThqvPnVQ=";
|
2013-05-19 12:18:37 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2013-05-19 12:18:37 +01:00
|
|
|
buildInputs =
|
|
|
|
[ # basic requirements
|
2019-05-13 12:41:15 +01:00
|
|
|
qtbase qttools qtmultimedia qtx11extras xlibsWrapper
|
2013-05-19 12:18:37 +01:00
|
|
|
# transports
|
|
|
|
curl libmms
|
|
|
|
# input plugins
|
|
|
|
libmad taglib libvorbis libogg flac libmpcdec libmodplug libsndfile
|
2021-04-27 13:16:05 +01:00
|
|
|
libcdio cdparanoia libcddb faad2 ffmpeg wildmidi
|
2013-05-19 12:18:37 +01:00
|
|
|
# output plugins
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib libpulseaudio
|
2013-05-19 12:18:37 +01:00
|
|
|
# effect plugins
|
|
|
|
libsamplerate
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-05-19 12:18:37 +01:00
|
|
|
description = "Qt-based audio player that looks like Winamp";
|
2021-04-27 13:16:05 +01:00
|
|
|
homepage = "https://qmmp.ylsoftware.com/";
|
|
|
|
license = licenses.gpl2Plus;
|
2013-05-20 18:33:18 +01:00
|
|
|
platforms = platforms.linux;
|
2014-01-02 16:53:57 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-05-19 12:18:37 +01:00
|
|
|
};
|
|
|
|
}
|