mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
122 lines
2.1 KiB
Nix
122 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
cmake,
|
|
pkg-config,
|
|
qtbase,
|
|
qttools,
|
|
qtmultimedia,
|
|
wrapQtAppsHook,
|
|
# transports
|
|
curl,
|
|
libmms,
|
|
# input plugins
|
|
libmad,
|
|
taglib,
|
|
libvorbis,
|
|
libogg,
|
|
flac,
|
|
libmpcdec,
|
|
libmodplug,
|
|
libsndfile,
|
|
libcdio,
|
|
cdparanoia,
|
|
libcddb,
|
|
faad2,
|
|
ffmpeg,
|
|
wildmidi,
|
|
libbs2b,
|
|
game-music-emu,
|
|
libarchive,
|
|
opusfile,
|
|
soxr,
|
|
wavpack,
|
|
libxmp,
|
|
libsidplayfp,
|
|
# output plugins
|
|
alsa-lib,
|
|
libpulseaudio,
|
|
pipewire,
|
|
libjack2,
|
|
# effect plugins
|
|
libsamplerate,
|
|
}:
|
|
|
|
# Additional plugins that can be added:
|
|
# 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 {
|
|
pname = "qmmp";
|
|
version = "2.1.8";
|
|
|
|
src = fetchurl {
|
|
url = "https://qmmp.ylsoftware.com/files/qmmp/2.1/${pname}-${version}.tar.bz2";
|
|
hash = "sha256-hGphQ8epqym47C9doiSOQd3yc28XwV2UsNc7ivhaae4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
# basic requirements
|
|
qtbase
|
|
qttools
|
|
qtmultimedia
|
|
# transports
|
|
curl
|
|
libmms
|
|
# input plugins
|
|
libmad
|
|
taglib
|
|
libvorbis
|
|
libogg
|
|
flac
|
|
libmpcdec
|
|
libmodplug
|
|
libsndfile
|
|
libcdio
|
|
cdparanoia
|
|
libcddb
|
|
faad2
|
|
ffmpeg
|
|
wildmidi
|
|
libbs2b
|
|
game-music-emu
|
|
libarchive
|
|
opusfile
|
|
soxr
|
|
wavpack
|
|
libxmp
|
|
libsidplayfp
|
|
# output plugins
|
|
alsa-lib
|
|
libpulseaudio
|
|
pipewire
|
|
libjack2
|
|
# effect plugins
|
|
libsamplerate
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Qt-based audio player that looks like Winamp";
|
|
mainProgram = "qmmp";
|
|
homepage = "https://qmmp.ylsoftware.com/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|