2021-08-01 04:01:36 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-11-28 00:02:38 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, cmake
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2020-11-28 00:02:38 +00:00
|
|
|
, ffmpeg
|
|
|
|
, libass
|
|
|
|
, libcddb
|
|
|
|
, libcdio
|
|
|
|
, libgme
|
|
|
|
, libpulseaudio
|
|
|
|
, libsidplayfp
|
|
|
|
, libva
|
|
|
|
, libXv
|
|
|
|
, taglib
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, vulkan-headers
|
|
|
|
, vulkan-tools
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
2021-08-01 04:01:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-11-28 00:02:38 +00:00
|
|
|
pname = "qmplay2";
|
2021-08-01 04:01:36 +00:00
|
|
|
version = "21.06.07";
|
2020-11-28 00:02:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zaps166";
|
|
|
|
repo = "QMPlay2";
|
|
|
|
rev = version;
|
2021-08-01 04:01:36 +00:00
|
|
|
sha256 = "sha256-NV9uglYnqebXhMx8uL0DhGe9l5TBVjlSIaB4IWC8YAc=";
|
2020-11-28 00:02:38 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-08-01 04:01:36 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2020-11-28 00:02:38 +00:00
|
|
|
buildInputs = [
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib
|
2020-11-28 00:02:38 +00:00
|
|
|
ffmpeg
|
2021-08-01 04:01:36 +00:00
|
|
|
libXv
|
2020-11-28 00:02:38 +00:00
|
|
|
libass
|
|
|
|
libcddb
|
|
|
|
libcdio
|
|
|
|
libgme
|
|
|
|
libpulseaudio
|
|
|
|
libsidplayfp
|
|
|
|
libva
|
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
taglib
|
|
|
|
vulkan-headers
|
|
|
|
vulkan-tools
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Because we think it is better to use only lowercase letters!
|
|
|
|
ln -s $out/bin/QMPlay2 $out/bin/qmplay2
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-28 00:02:38 +00:00
|
|
|
homepage = "https://github.com/zaps166/QMPlay2/";
|
|
|
|
description = "Qt-based Multimedia player";
|
|
|
|
longDescription = ''
|
|
|
|
QMPlay2 is a video and audio player. It can play all formats supported by
|
|
|
|
FFmpeg, libmodplug (including J2B and SFX). It also supports Audio CD, raw
|
|
|
|
files, Rayman 2 music and chiptunes. It contains YouTube and MyFreeMP3
|
|
|
|
browser.
|
|
|
|
'';
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|