nixpkgs/pkgs/by-name/qm/qmplay2/package.nix

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

98 lines
1.8 KiB
Nix
Raw Normal View History

{
lib,
alsa-lib,
callPackage,
cmake,
ffmpeg,
fribidi,
game-music-emu,
libXdmcp,
libXv,
libass,
libcddb,
libcdio,
libpulseaudio,
libsidplayfp,
libva,
libxcb,
pkg-config,
qt5,
stdenv,
taglib,
vulkan-headers,
vulkan-tools,
2020-11-28 00:02:38 +00:00
}:
2023-03-27 02:03:51 +00:00
let
sources = callPackage ./sources.nix { };
in
2023-04-16 20:10:09 +00:00
stdenv.mkDerivation (finalAttrs: {
inherit (sources.qmplay2) pname version src;
2020-11-28 00:02:38 +00:00
postPatch = ''
pushd src
cp -va ${sources.qmvk.src}/* qmvk/
chmod --recursive 744 qmvk
popd
'';
2021-08-01 04:01:36 +00:00
nativeBuildInputs = [
cmake
pkg-config
]
++ [
qt5.wrapQtAppsHook
2021-08-01 04:01:36 +00:00
];
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
taglib
vulkan-headers
vulkan-tools
]
++ [
qt5.qtbase
qt5.qttools
2020-11-28 00:02:38 +00:00
];
2024-07-03 17:25:52 +00:00
strictDeps = true;
# Because we think it is better to use only lowercase letters!
# But sometimes we come across case-insensitive filesystems...
2024-07-26 12:23:08 +00:00
postInstall = ''
[ -e $out/bin/qmplay2 ] || ln -s $out/bin/QMPlay2 $out/bin/qmplay2
2020-11-28 00:02:38 +00:00
'';
passthru = {
inherit sources;
};
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;
mainProgram = "qmplay2";
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
})