2019-09-02 18:34:36 +00:00
|
|
|
{ stdenv, mkDerivation, fetchurl, cmake, pkgconfig, xlibsWrapper
|
2016-08-25 09:18:55 +00:00
|
|
|
, qtbase, qttools, qtmultimedia, qtx11extras
|
2013-05-19 11:18:37 +00:00
|
|
|
# transports
|
|
|
|
, curl, libmms
|
|
|
|
# input plugins
|
|
|
|
, libmad, taglib, libvorbis, libogg, flac, libmpcdec, libmodplug, libsndfile
|
2020-06-07 12:39:09 +00:00
|
|
|
, libcdio, cdparanoia, libcddb, faad2, ffmpeg_3, wildmidi
|
2013-05-19 11:18:37 +00:00
|
|
|
# output plugins
|
2015-05-27 19:42:15 +00:00
|
|
|
, alsaLib, libpulseaudio
|
2013-05-19 11:18:37 +00:00
|
|
|
# effect plugins
|
|
|
|
, libsamplerate
|
|
|
|
}:
|
|
|
|
|
|
|
|
# Additional plugins that can be added:
|
|
|
|
# wavpack (http://www.wavpack.com/)
|
|
|
|
# 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 18:34:36 +00:00
|
|
|
mkDerivation rec {
|
2020-07-26 18:06:38 +00:00
|
|
|
name = "qmmp-1.4.1";
|
2013-05-19 11:18:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://qmmp.ylsoftware.com/files/${name}.tar.bz2";
|
2020-07-26 18:06:38 +00:00
|
|
|
sha256 = "0p18r2ri75vbyjzfa7bcl1dm372m6jvn9zj2p5ia2rh1g77fbm9a";
|
2013-05-19 11:18:37 +00:00
|
|
|
};
|
|
|
|
|
2019-05-13 11:41:15 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2013-05-19 11:18:37 +00:00
|
|
|
buildInputs =
|
|
|
|
[ # basic requirements
|
2019-05-13 11:41:15 +00:00
|
|
|
qtbase qttools qtmultimedia qtx11extras xlibsWrapper
|
2013-05-19 11:18:37 +00:00
|
|
|
# transports
|
|
|
|
curl libmms
|
|
|
|
# input plugins
|
|
|
|
libmad taglib libvorbis libogg flac libmpcdec libmodplug libsndfile
|
2020-06-07 12:39:09 +00:00
|
|
|
libcdio cdparanoia libcddb faad2 ffmpeg_3 wildmidi
|
2013-05-19 11:18:37 +00:00
|
|
|
# output plugins
|
2015-05-27 19:42:15 +00:00
|
|
|
alsaLib libpulseaudio
|
2013-05-19 11:18:37 +00:00
|
|
|
# effect plugins
|
|
|
|
libsamplerate
|
|
|
|
];
|
|
|
|
|
2016-08-25 09:22:05 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-05-20 17:33:18 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-05-19 11:18:37 +00:00
|
|
|
description = "Qt-based audio player that looks like Winamp";
|
2020-04-07 09:33:23 +00:00
|
|
|
homepage = "http://qmmp.ylsoftware.com/";
|
2013-05-20 17:33:18 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2014-01-02 16:53:57 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2020-04-01 01:11:51 +00:00
|
|
|
repositories.svn = "http://qmmp.googlecode.com/svn/";
|
2013-05-19 11:18:37 +00:00
|
|
|
};
|
|
|
|
}
|