nixpkgs/pkgs/applications/video/qmplay2/default.nix

86 lines
1.6 KiB
Nix
Raw Normal View History

2021-08-01 04:01:36 +00:00
{ lib
, stdenv
2020-11-28 00:02:38 +00:00
, fetchFromGitHub
, alsa-lib
2023-03-27 02:03:51 +00:00
, cmake
2020-11-28 00:02:38 +00:00
, ffmpeg
, fribidi
, game-music-emu
, libXdmcp
2023-03-27 02:03:51 +00:00
, libXv
2020-11-28 00:02:38 +00:00
, libass
, libcddb
, libcdio
, libpulseaudio
, libsidplayfp
, libva
, libxcb
2023-03-27 02:03:51 +00:00
, pkg-config
2020-11-28 00:02:38 +00:00
, qtbase
, qttools
2023-03-27 02:03:51 +00:00
, taglib
2020-11-28 00:02:38 +00:00
, vulkan-headers
, vulkan-tools
, wrapQtAppsHook
}:
2023-03-27 02:03:51 +00:00
2023-04-16 20:10:09 +00:00
stdenv.mkDerivation (finalAttrs: {
2020-11-28 00:02:38 +00:00
pname = "qmplay2";
2024-04-08 20:14:00 +00:00
version = "24.04.07";
2020-11-28 00:02:38 +00:00
src = fetchFromGitHub {
owner = "zaps166";
repo = "QMPlay2";
2023-04-16 20:10:09 +00:00
rev = finalAttrs.version;
2020-11-28 00:02:38 +00:00
fetchSubmodules = true;
2024-04-08 20:14:00 +00:00
hash = "sha256-WIDGApvl+aaB3Vdv0sHY+FHWqzreWWd3/xOLV11YfxM=";
2020-11-28 00:02:38 +00:00
};
2021-08-01 04:01:36 +00:00
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
2023-03-27 02:03:51 +00:00
2020-11-28 00:02:38 +00:00
buildInputs = [
alsa-lib
2020-11-28 00:02:38 +00:00
ffmpeg
fribidi
game-music-emu
libXdmcp
2021-08-01 04:01:36 +00:00
libXv
2020-11-28 00:02:38 +00:00
libass
libcddb
libcdio
libpulseaudio
libsidplayfp
libva
libxcb
2020-11-28 00:02:38 +00:00
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
'';
2023-03-27 02:03:51 +00:00
meta = {
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.
'';
2023-04-16 20:10:09 +00:00
changelog = "https://github.com/zaps166/QMPlay2/releases/tag/${finalAttrs.version}";
2023-03-27 02:03:51 +00:00
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ AndersonTorres kashw2 ];
2023-03-27 02:03:51 +00:00
platforms = lib.platforms.linux;
2020-11-28 00:02:38 +00:00
};
2023-03-27 02:03:51 +00:00
})