92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
|
, qttools
|
|
|
|
, curl
|
|
, ffmpeg
|
|
, libmediainfo
|
|
, libzen
|
|
, qtbase
|
|
, qtdeclarative
|
|
, qtmultimedia
|
|
, qtsvg
|
|
, quazip
|
|
}:
|
|
|
|
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 = [ qmake qttools ];
|
|
|
|
buildInputs = [ curl ffmpeg libmediainfo libzen qtbase qtdeclarative qtmultimedia qtsvg ];
|
|
|
|
qmakeFlags = [
|
|
"USE_EXTERN_QUAZIP=${quazip}/include/quazip5"
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace MediaElch.pro --replace "/usr" "$out"
|
|
'';
|
|
|
|
qtWrapperArgs = [
|
|
# libmediainfo.so.0 is loaded dynamically
|
|
"--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;
|
|
};
|
|
}
|