From db12fcedef38fead8a86c2e7b5fb276330b91c12 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sun, 26 Mar 2023 23:03:51 -0300 Subject: [PATCH] qmplay2: 22.08.21 -> 23.02.05 --- pkgs/applications/video/qmplay2/default.nix | 29 ++++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/video/qmplay2/default.nix b/pkgs/applications/video/qmplay2/default.nix index 49aa6c00e790..d4da46cfc887 100644 --- a/pkgs/applications/video/qmplay2/default.nix +++ b/pkgs/applications/video/qmplay2/default.nix @@ -1,34 +1,35 @@ { lib , stdenv , fetchFromGitHub -, pkg-config -, cmake , alsa-lib +, cmake , ffmpeg , game-music-emu +, libXv , libass , libcddb , libcdio , libpulseaudio , libsidplayfp , libva -, libXv -, taglib +, pkg-config , qtbase , qttools +, taglib , vulkan-headers , vulkan-tools , wrapQtAppsHook }: -stdenv.mkDerivation rec { + +stdenv.mkDerivation (self: { pname = "qmplay2"; - version = "22.08.21"; + version = "23.02.05"; src = fetchFromGitHub { owner = "zaps166"; repo = "QMPlay2"; - rev = version; - sha256 = "sha256-UQf1aJGoUlXBo2lejw8A3lF6rFOKK6LUGDxRY9207Dw="; + rev = self.version; + sha256 = "sha256-ZDpUgD9qTvjopGFVrwTBSEmrXn+4aKq2zeqoTnXwmI8="; fetchSubmodules = true; }; @@ -37,6 +38,7 @@ stdenv.mkDerivation rec { pkg-config wrapQtAppsHook ]; + buildInputs = [ alsa-lib ffmpeg @@ -60,7 +62,7 @@ stdenv.mkDerivation rec { ln -s $out/bin/QMPlay2 $out/bin/qmplay2 ''; - meta = with lib; { + meta = { homepage = "https://github.com/zaps166/QMPlay2/"; description = "Qt-based Multimedia player"; longDescription = '' @@ -69,8 +71,9 @@ stdenv.mkDerivation rec { files, Rayman 2 music and chiptunes. It contains YouTube and MyFreeMP3 browser. ''; - license = licenses.lgpl3Plus; - maintainers = with maintainers; [ AndersonTorres ]; - platforms = with platforms; linux; + changelog = "https://github.com/zaps166/QMPlay2/releases/tag/${self.version}"; + license = lib.licenses.lgpl3Plus; + maintainers = with lib.maintainers; [ AndersonTorres ]; + platforms = lib.platforms.linux; }; -} +})