mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
77 lines
1.3 KiB
Nix
77 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
, qttools
|
|
, wrapQtAppsHook
|
|
|
|
, curl
|
|
, ffmpeg
|
|
, libmediainfo
|
|
, libzen
|
|
, qt5compat ? null # qt6 only
|
|
, qtbase
|
|
, qtdeclarative
|
|
, qtmultimedia
|
|
, qtsvg
|
|
, qtwayland
|
|
, quazip
|
|
}:
|
|
let
|
|
qtVersion = lib.versions.major qtbase.version;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "mediaelch";
|
|
version = "2.8.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Komet";
|
|
repo = "MediaElch";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-9kwU9j8YNF/OmzrQaRAlBpW+t/tIpZJw5+pfEoTmCBA=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
qttools
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
curl
|
|
ffmpeg
|
|
libmediainfo
|
|
libzen
|
|
qtbase
|
|
qtdeclarative
|
|
qtmultimedia
|
|
qtsvg
|
|
qtwayland
|
|
quazip
|
|
] ++ lib.optional (qtVersion == "6") [
|
|
qt5compat
|
|
];
|
|
|
|
|
|
cmakeFlags = [
|
|
"-DDISABLE_UPDATER=ON"
|
|
"-DUSE_EXTERN_QUAZIP=ON"
|
|
"-DMEDIAELCH_FORCE_QT${qtVersion}=ON"
|
|
];
|
|
|
|
# libmediainfo.so.0 is loaded dynamically
|
|
qtWrapperArgs = [
|
|
"--prefix LD_LIBRARY_PATH : ${libmediainfo}/lib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://mediaelch.de/mediaelch/";
|
|
description = "Media Manager for Kodi";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ stunkymonkey ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|