2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-12-21 12:57:26 +01:00
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
|
|
|
, curl
|
|
|
|
, ffmpeg
|
|
|
|
, libmediainfo
|
|
|
|
, libzen
|
|
|
|
, qtbase
|
|
|
|
, qtdeclarative
|
|
|
|
, qtmultimedia
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "mediaelch";
|
2021-01-24 16:05:40 +01:00
|
|
|
version = "2.8.6";
|
2020-12-21 12:57:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Komet";
|
|
|
|
repo = "MediaElch";
|
|
|
|
rev = "v${version}";
|
2021-01-24 16:05:40 +01:00
|
|
|
sha256 = "1134vw7hr0mpqcsxjq4bqmg5760dngz17bzj97ypfc5cvzcxjh43";
|
2020-12-21 12:57:26 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
|
|
|
|
buildInputs = [ curl libmediainfo libzen ffmpeg qtbase qtdeclarative qtmultimedia ];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace MediaElch.pro --replace "/usr" "$out"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-12-21 12:57:26 +01:00
|
|
|
homepage = "https://mediaelch.de/mediaelch/";
|
|
|
|
description = "Media Manager for Kodi";
|
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ stunkymonkey ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|