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