nixpkgs-suyu/pkgs/applications/misc/mediaelch/default.nix

44 lines
875 B
Nix
Raw Normal View History

{ lib
2020-12-21 12:57:26 +01:00
, mkDerivation
, fetchFromGitHub
, qmake
, curl
, ffmpeg
, libmediainfo
, libzen
, qtbase
, qtdeclarative
, qtmultimedia
2021-04-27 13:43:56 +02:00
, qtsvg
, qttools
2020-12-21 12:57:26 +01:00
}:
mkDerivation rec {
pname = "mediaelch";
2021-05-10 12:20:27 +02:00
version = "2.8.12";
2020-12-21 12:57:26 +01:00
src = fetchFromGitHub {
owner = "Komet";
repo = "MediaElch";
rev = "v${version}";
2021-05-10 12:20:27 +02:00
sha256 = "1gx4m9cf81d0b2nk2rlqm4misz67f5bpkjqx7d1l76rw2pwc6azf";
2020-12-21 12:57:26 +01:00
fetchSubmodules = true;
};
2021-04-27 13:43:56 +02:00
nativeBuildInputs = [ qmake qttools ];
2020-12-21 12:57:26 +01:00
2021-04-27 13:43:56 +02:00
buildInputs = [ curl libmediainfo libzen ffmpeg qtbase qtdeclarative qtmultimedia qtsvg ];
2020-12-21 12:57:26 +01:00
prePatch = ''
substituteInPlace MediaElch.pro --replace "/usr" "$out"
'';
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;
};
}