mpc-qt: 24.12.1-flatpak -> 25.07 (#465053)

This commit is contained in:
José Romildo Malaquias
2025-11-26 14:01:13 +00:00
committed by GitHub
+10 -13
View File
@@ -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"; };