2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-12-21 12:57:26 +01:00
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
|
|
|
, curl
|
|
|
|
, ffmpeg
|
|
|
|
, libmediainfo
|
|
|
|
, libzen
|
|
|
|
, qtbase
|
|
|
|
, qtdeclarative
|
|
|
|
, qtmultimedia
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "mediaelch";
|
2021-01-10 21:03:11 +01:00
|
|
|
version = "2.8.4";
|
2020-12-21 12:57:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Komet";
|
|
|
|
repo = "MediaElch";
|
|
|
|
rev = "v${version}";
|
2021-01-10 21:03:11 +01:00
|
|
|
sha256 = "00jwmpdwbn6rgaha0iimcbwg9pwb8ilpjgxhv0p13j2c6dcisjzh";
|
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;
|
|
|
|
};
|
|
|
|
}
|