mpc-qt: migrate to by-name
This commit is contained in:
parent
709230837a
commit
cdeba33c9d
@ -3,30 +3,27 @@
|
|||||||
stdenv,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
qmake,
|
qt6Packages,
|
||||||
qttools,
|
|
||||||
qtbase,
|
|
||||||
mpv,
|
mpv,
|
||||||
wrapQtAppsHook,
|
|
||||||
gitUpdater,
|
gitUpdater,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "mpc-qt";
|
pname = "mpc-qt";
|
||||||
version = "24.12.1-flatpak";
|
version = "24.12.1-flatpak";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mpc-qt";
|
owner = "mpc-qt";
|
||||||
repo = "mpc-qt";
|
repo = "mpc-qt";
|
||||||
rev = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-gn94kVs3Lbd+ggj4jTacHpmnVO2lH/QDhFk+hJC1N/c=";
|
hash = "sha256-gn94kVs3Lbd+ggj4jTacHpmnVO2lH/QDhFk+hJC1N/c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
qmake
|
qt6Packages.qmake
|
||||||
qttools
|
qt6Packages.qttools
|
||||||
wrapQtAppsHook
|
qt6Packages.wrapQtAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -34,26 +31,26 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace lconvert.pri --replace "qtPrepareTool(LCONVERT, lconvert)" "qtPrepareTool(LCONVERT, lconvert, , , ${qttools}/bin)"
|
substituteInPlace lconvert.pri --replace "qtPrepareTool(LCONVERT, lconvert)" "qtPrepareTool(LCONVERT, lconvert, , , ${qt6Packages.qttools}/bin)"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
substituteInPlace Makefile --replace ${qtbase}/bin/lrelease ${qttools.dev}/bin/lrelease
|
substituteInPlace Makefile --replace ${qt6Packages.qtbase}/bin/lrelease ${qt6Packages.qttools.dev}/bin/lrelease
|
||||||
'';
|
'';
|
||||||
|
|
||||||
qmakeFlags = [
|
qmakeFlags = [
|
||||||
"MPCQT_VERSION=${version}"
|
"MPCQT_VERSION=${finalAttrs.version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Media Player Classic Qute Theater";
|
description = "Media Player Classic Qute Theater";
|
||||||
homepage = "https://mpc-qt.github.io";
|
homepage = "https://mpc-qt.github.io";
|
||||||
license = licenses.gpl2;
|
license = lib.licenses.gpl2;
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
broken = stdenv.hostPlatform.isDarwin;
|
broken = stdenv.hostPlatform.isDarwin;
|
||||||
maintainers = with maintainers; [ romildo ];
|
maintainers = with lib.maintainers; [ romildo ];
|
||||||
mainProgram = "mpc-qt";
|
mainProgram = "mpc-qt";
|
||||||
};
|
};
|
||||||
}
|
})
|
@ -13204,8 +13204,6 @@ with pkgs;
|
|||||||
# a somewhat more maintained fork of ympd
|
# a somewhat more maintained fork of ympd
|
||||||
memento = qt6Packages.callPackage ../applications/video/memento { };
|
memento = qt6Packages.callPackage ../applications/video/memento { };
|
||||||
|
|
||||||
mpc-qt = qt6Packages.callPackage ../applications/video/mpc-qt { };
|
|
||||||
|
|
||||||
mplayer = callPackage ../applications/video/mplayer (
|
mplayer = callPackage ../applications/video/mplayer (
|
||||||
{
|
{
|
||||||
libdvdnav = libdvdnav_4_2_1;
|
libdvdnav = libdvdnav_4_2_1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user