3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/qmmp/default.nix

65 lines
2 KiB
Nix
Raw Normal View History

2019-09-02 19:34:36 +01:00
{ stdenv, mkDerivation, fetchurl, cmake, pkgconfig, xlibsWrapper
, qtbase, qttools, qtmultimedia, qtx11extras
# transports
, curl, libmms
# input plugins
, libmad, taglib, libvorbis, libogg, flac, libmpcdec, libmodplug, libsndfile
, libcdio, cdparanoia, libcddb, faad2, ffmpeg_3, wildmidi
# output plugins
, alsaLib, libpulseaudio
# 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 19:34:36 +01:00
mkDerivation rec {
2020-07-26 19:06:38 +01:00
name = "qmmp-1.4.1";
src = fetchurl {
url = "http://qmmp.ylsoftware.com/files/${name}.tar.bz2";
2020-07-26 19:06:38 +01:00
sha256 = "0p18r2ri75vbyjzfa7bcl1dm372m6jvn9zj2p5ia2rh1g77fbm9a";
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs =
[ # basic requirements
qtbase qttools qtmultimedia qtx11extras xlibsWrapper
# transports
curl libmms
# input plugins
libmad taglib libvorbis libogg flac libmpcdec libmodplug libsndfile
libcdio cdparanoia libcddb faad2 ffmpeg_3 wildmidi
# output plugins
alsaLib libpulseaudio
# effect plugins
libsamplerate
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Qt-based audio player that looks like Winamp";
2020-04-07 10:33:23 +01:00
homepage = "http://qmmp.ylsoftware.com/";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
repositories.svn = "http://qmmp.googlecode.com/svn/";
};
}