3
0
Fork 0
forked from mirrors/nixpkgs

mediaelch: switch from qt5 to qt6

This commit is contained in:
Felix Buehler 2022-10-29 12:44:23 +02:00 committed by Peter Hoeg
parent c2b3b7f4e4
commit 1e92bc11fc
2 changed files with 32 additions and 14 deletions

View file

@ -1,22 +1,25 @@
{ lib
, mkDerivation
, stdenv
, fetchFromGitHub
, qmake
, cmake
, qttools
, wrapQtAppsHook
, curl
, ffmpeg
, libmediainfo
, libzen
, qt5compat
, qtbase
, qtdeclarative
, qtmultimedia
, qtsvg
, qtwayland
, quazip
}:
mkDerivation rec {
stdenv.mkDerivation rec {
pname = "mediaelch";
version = "2.8.18";
@ -28,20 +31,35 @@ mkDerivation rec {
fetchSubmodules = true;
};
nativeBuildInputs = [ qmake qttools ];
buildInputs = [ curl ffmpeg libmediainfo libzen qtbase qtdeclarative qtmultimedia qtsvg ];
qmakeFlags = [
"USE_EXTERN_QUAZIP=${quazip}/include/quazip5"
nativeBuildInputs = [
cmake
qttools
wrapQtAppsHook
];
postPatch = ''
substituteInPlace MediaElch.pro --replace "/usr" "$out"
'';
buildInputs = [
curl
ffmpeg
libmediainfo
libzen
qt5compat
qtbase
qtdeclarative
qtmultimedia
qtsvg
qtwayland
quazip
];
cmakeFlags = [
"-DDISABLE_UPDATER=ON"
"-DUSE_EXTERN_QUAZIP=ON"
"-DMEDIAELCH_FORCE_QT6=ON"
];
qtWrapperArgs = [
# libmediainfo.so.0 is loaded dynamically
qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${libmediainfo}/lib"
];

View file

@ -30555,7 +30555,7 @@ with pkgs;
media-downloader = callPackage ../applications/video/media-downloader { };
mediaelch = libsForQt5.callPackage ../applications/misc/mediaelch { };
mediaelch = qt6Packages.callPackage ../applications/misc/mediaelch { };
mediainfo = callPackage ../applications/misc/mediainfo { };