Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
qt6Packages,
|
|
mpv,
|
|
gitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "mpc-qt";
|
|
version = "24.12.1-flatpak";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mpc-qt";
|
|
repo = "mpc-qt";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-gn94kVs3Lbd+ggj4jTacHpmnVO2lH/QDhFk+hJC1N/c=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
qt6Packages.qmake
|
|
qt6Packages.qttools
|
|
qt6Packages.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
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}"
|
|
];
|
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
|
|
|
meta = {
|
|
description = "Media Player Classic Qute Theater";
|
|
homepage = "https://mpc-qt.github.io";
|
|
license = lib.licenses.gpl2;
|
|
platforms = lib.platforms.unix;
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
maintainers = with lib.maintainers; [ romildo ];
|
|
mainProgram = "mpc-qt";
|
|
};
|
|
})
|