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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
2020-12-21 11:57:26 +00:00
, mkDerivation
, fetchFromGitHub
2022-02-15 19:27:33 +00:00
2020-12-21 11:57:26 +00:00
, qmake
2022-02-15 19:27:33 +00:00
, qttools
2020-12-21 11:57:26 +00:00
, curl
, ffmpeg
, libmediainfo
, libzen
, qtbase
, qtdeclarative
, qtmultimedia
2021-04-27 11:43:56 +00:00
, qtsvg
2022-02-06 13:13:24 +00:00
, quazip
2020-12-21 11:57:26 +00:00
}:
mkDerivation rec {
pname = "mediaelch";
2022-03-13 15:39:37 +00:00
version = "2.8.16";
2020-12-21 11:57:26 +00:00
src = fetchFromGitHub {
owner = "Komet";
repo = "MediaElch";
rev = "v${version}";
2022-03-13 15:39:37 +00:00
sha256 = "sha256-83bHfIRVAC+3RkCYmV+TBjjQxaFMHfVyxt5Jq44dzeI=";
2020-12-21 11:57:26 +00:00
fetchSubmodules = true;
};
2021-04-27 11:43:56 +00:00
nativeBuildInputs = [ qmake qttools ];
2020-12-21 11:57:26 +00:00
2022-02-15 19:27:33 +00:00
buildInputs = [ curl ffmpeg libmediainfo libzen qtbase qtdeclarative qtmultimedia qtsvg ];
2020-12-21 11:57:26 +00:00
2022-02-06 13:13:24 +00:00
qmakeFlags = [
"USE_EXTERN_QUAZIP=${quazip}/include/quazip5"
];
postPatch = ''
2020-12-21 11:57:26 +00:00
substituteInPlace MediaElch.pro --replace "/usr" "$out"
'';
2022-02-15 19:27:33 +00:00
qtWrapperArgs = [
# libmediainfo.so.0 is loaded dynamically
"--prefix LD_LIBRARY_PATH : ${libmediainfo}/lib"
];
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;
};
}