2016-08-25 11:18:55 +02:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, xlibsWrapper
|
|
|
|
, qtbase, qttools, qtmultimedia, qtx11extras
|
2013-05-19 13:18:37 +02:00
|
|
|
# transports
|
|
|
|
, curl, libmms
|
|
|
|
# input plugins
|
|
|
|
, libmad, taglib, libvorbis, libogg, flac, libmpcdec, libmodplug, libsndfile
|
|
|
|
, libcdio, cdparanoia, libcddb, faad2, ffmpeg, wildmidi
|
|
|
|
# output plugins
|
2015-05-27 21:42:15 +02:00
|
|
|
, alsaLib, libpulseaudio
|
2013-05-19 13:18:37 +02: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.
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-08-25 11:18:55 +02:00
|
|
|
name = "qmmp-1.1.2";
|
2013-05-19 13:18:37 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://qmmp.ylsoftware.com/files/${name}.tar.bz2";
|
2016-08-25 11:18:55 +02:00
|
|
|
sha256 = "023gvgchk6ybkz3miy0z08j9n5awz5cjvav7fqjdmpix4sivhn5q";
|
2013-05-19 13:18:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ # basic requirements
|
2016-08-25 11:18:55 +02:00
|
|
|
cmake pkgconfig xlibsWrapper
|
|
|
|
qtbase qttools qtmultimedia qtx11extras
|
2013-05-19 13:18:37 +02:00
|
|
|
# transports
|
|
|
|
curl libmms
|
|
|
|
# input plugins
|
|
|
|
libmad taglib libvorbis libogg flac libmpcdec libmodplug libsndfile
|
|
|
|
libcdio cdparanoia libcddb faad2 ffmpeg wildmidi
|
|
|
|
# output plugins
|
2015-05-27 21:42:15 +02:00
|
|
|
alsaLib libpulseaudio
|
2013-05-19 13:18:37 +02:00
|
|
|
# effect plugins
|
|
|
|
libsamplerate
|
|
|
|
];
|
|
|
|
|
2016-08-25 11:22:05 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-05-20 19:33:18 +02:00
|
|
|
meta = with stdenv.lib; {
|
2013-05-19 13:18:37 +02:00
|
|
|
description = "Qt-based audio player that looks like Winamp";
|
|
|
|
homepage = http://qmmp.ylsoftware.com/;
|
2013-05-20 19:33:18 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2014-01-02 17:53:57 +01:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-11-17 12:02:37 +01:00
|
|
|
repositories.svn = http://qmmp.googlecode.com/svn/;
|
2013-05-19 13:18:37 +02:00
|
|
|
};
|
|
|
|
}
|