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

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

80 lines
1.6 KiB
Nix
Raw Normal View History

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