From 60e31c0e8f8298cc17ad16e21e0735a1ea51c4dd Mon Sep 17 00:00:00 2001 From: Thomas Bertels <3265870+tbertels@users.noreply.github.com> Date: Sun, 23 Nov 2025 18:20:33 +0100 Subject: [PATCH] mpc-qt: 24.12.1-flatpak -> 25.07 Release notes: https://github.com/mpc-qt/mpc-qt/releases/tag/v25.07 Full changelog: https://github.com/mpc-qt/mpc-qt/compare/v24.12.1-flatpak...v25.07 Other changes to package: - Update build system and dependencies from qmake to cmake, ninja and boost - Remove qmake workarounds not needed anymore --- pkgs/by-name/mp/mpc-qt/package.nix | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/mp/mpc-qt/package.nix b/pkgs/by-name/mp/mpc-qt/package.nix index 1d4ebaf8bf68..45a35f6a5136 100644 --- a/pkgs/by-name/mp/mpc-qt/package.nix +++ b/pkgs/by-name/mp/mpc-qt/package.nix @@ -2,7 +2,10 @@ lib, stdenv, fetchFromGitHub, + cmake, + ninja, pkg-config, + boost, qt6Packages, mpv, gitUpdater, @@ -10,18 +13,20 @@ stdenv.mkDerivation (finalAttrs: { pname = "mpc-qt"; - version = "24.12.1-flatpak"; + version = "25.07"; src = fetchFromGitHub { owner = "mpc-qt"; repo = "mpc-qt"; tag = "v${finalAttrs.version}"; - hash = "sha256-gn94kVs3Lbd+ggj4jTacHpmnVO2lH/QDhFk+hJC1N/c="; + hash = "sha256-apZR3PgU+Fq1whnWQHhmHPZKAZBKdrVCWaGfu+H7A4s="; }; nativeBuildInputs = [ + boost + ninja + cmake pkg-config - qt6Packages.qmake qt6Packages.qttools qt6Packages.wrapQtAppsHook ]; @@ -30,16 +35,8 @@ stdenv.mkDerivation (finalAttrs: { mpv ]; - postPatch = '' - substituteInPlace lconvert.pri --replace "qtPrepareTool(LCONVERT, lconvert)" "qtPrepareTool(LCONVERT, lconvert, , , ${qt6Packages.qttools}/bin)" - ''; - - postConfigure = '' - substituteInPlace Makefile --replace ${qt6Packages.qtbase}/bin/lrelease ${qt6Packages.qttools.dev}/bin/lrelease - ''; - - qmakeFlags = [ - "MPCQT_VERSION=${finalAttrs.version}" + cmakeFlags = [ + "-DMPCQT_VERSION=${finalAttrs.version}" ]; passthru.updateScript = gitUpdater { rev-prefix = "v"; };