nixpkgs/pkgs/applications/audio/qmmp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.9 KiB
Nix
Raw Normal View History

2022-11-11 15:59:03 +00:00
{ lib, stdenv, fetchurl, cmake, pkg-config
, qtbase, qttools, qtmultimedia, wrapQtAppsHook
# transports
, curl, libmms
# input plugins
, libmad, taglib, libvorbis, libogg, flac, libmpcdec, libmodplug, libsndfile
2022-11-11 15:59:03 +00:00
, libcdio, cdparanoia, libcddb, faad2, ffmpeg, wildmidi, libbs2b, game-music-emu
# output plugins
2022-11-11 15:59:03 +00:00
, alsa-lib, libpulseaudio, pipewire
# effect plugins
, libsamplerate
}:
# Additional plugins that can be added:
# wavpack (https://www.wavpack.com/)
# Ogg Opus support
# 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.
2022-11-11 15:59:03 +00:00
stdenv.mkDerivation rec {
pname = "qmmp";
2022-11-11 15:59:03 +00:00
version = "2.1.2";
src = fetchurl {
2022-11-11 15:59:03 +00:00
url = "https://qmmp.ylsoftware.com/files/qmmp/2.1/${pname}-${version}.tar.bz2";
hash = "sha256-U86LoAkg6mBFVa/cgB8kpCa5KwdkR0PMQmAGvf/KAXo=";
};
2022-11-11 15:59:03 +00:00
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
buildInputs =
[ # basic requirements
2022-11-11 15:59:03 +00:00
qtbase qttools qtmultimedia
# transports
curl libmms
# input plugins
libmad taglib libvorbis libogg flac libmpcdec libmodplug libsndfile
2022-11-11 15:59:03 +00:00
libcdio cdparanoia libcddb faad2 ffmpeg wildmidi libbs2b game-music-emu
# output plugins
2022-11-11 15:59:03 +00:00
alsa-lib libpulseaudio pipewire
# effect plugins
libsamplerate
];
meta = with lib; {
description = "Qt-based audio player that looks like Winamp";
homepage = "https://qmmp.ylsoftware.com/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}