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

56 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
2020-12-21 12:57:26 +01:00
, mkDerivation
, fetchFromGitHub
2022-02-15 20:27:33 +01:00
2020-12-21 12:57:26 +01:00
, qmake
2022-02-15 20:27:33 +01:00
, qttools
2020-12-21 12:57:26 +01:00
, curl
, ffmpeg
, libmediainfo
, libzen
, qtbase
, qtdeclarative
, qtmultimedia
2021-04-27 13:43:56 +02:00
, qtsvg
2022-02-06 14:13:24 +01:00
, quazip
2020-12-21 12:57:26 +01:00
}:
mkDerivation rec {
pname = "mediaelch";
2022-10-28 23:44:41 +02:00
version = "2.8.18";
2020-12-21 12:57:26 +01:00
src = fetchFromGitHub {
owner = "Komet";
repo = "MediaElch";
rev = "v${version}";
2022-10-28 23:44:41 +02:00
sha256 = "sha256-9kwU9j8YNF/OmzrQaRAlBpW+t/tIpZJw5+pfEoTmCBA=";
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
2022-02-15 20:27:33 +01:00
buildInputs = [ curl ffmpeg libmediainfo libzen qtbase qtdeclarative qtmultimedia qtsvg ];
2020-12-21 12:57:26 +01:00
2022-02-06 14:13:24 +01:00
qmakeFlags = [
"USE_EXTERN_QUAZIP=${quazip}/include/quazip5"
];
postPatch = ''
2020-12-21 12:57:26 +01:00
substituteInPlace MediaElch.pro --replace "/usr" "$out"
'';
2022-02-15 20:27:33 +01:00
qtWrapperArgs = [
# libmediainfo.so.0 is loaded dynamically
"--prefix LD_LIBRARY_PATH : ${libmediainfo}/lib"
];
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;
};
}