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

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

78 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
2022-10-29 10:44:23 +00:00
, stdenv
2020-12-21 11:57:26 +00:00
, fetchFromGitHub
, fetchpatch
2022-02-15 19:27:33 +00:00
2022-10-29 10:44:23 +00:00
, cmake
2022-02-15 19:27:33 +00:00
, qttools
2022-10-29 10:44:23 +00:00
, wrapQtAppsHook
2022-02-15 19:27:33 +00:00
2020-12-21 11:57:26 +00:00
, curl
, ffmpeg
, libmediainfo
, libzen
2022-12-24 12:39:08 +00:00
, qt5compat ? null # qt6 only
2020-12-21 11:57:26 +00:00
, qtbase
, qtdeclarative
, qtmultimedia
2021-04-27 11:43:56 +00:00
, qtsvg
2022-10-29 10:44:23 +00:00
, qtwayland
2022-02-06 13:13:24 +00:00
, quazip
2020-12-21 11:57:26 +00:00
}:
2022-12-24 12:39:08 +00:00
let
qtVersion = lib.versions.major qtbase.version;
in
2022-10-29 10:44:23 +00:00
stdenv.mkDerivation rec {
2020-12-21 11:57:26 +00:00
pname = "mediaelch";
2023-07-30 17:27:08 +00:00
version = "2.10.4";
2020-12-21 11:57:26 +00:00
src = fetchFromGitHub {
owner = "Komet";
repo = "MediaElch";
rev = "v${version}";
2023-07-30 17:27:08 +00:00
hash = "sha256-gNpnmyUKDXf40+1JmJzNyEPIv/DO8b3CdJAphheEvTU=";
2020-12-21 11:57:26 +00:00
fetchSubmodules = true;
};
2022-10-29 10:44:23 +00:00
nativeBuildInputs = [
cmake
qttools
wrapQtAppsHook
];
2020-12-21 11:57:26 +00:00
2022-10-29 10:44:23 +00:00
buildInputs = [
curl
ffmpeg
libmediainfo
libzen
qtbase
qtdeclarative
qtmultimedia
qtsvg
qtwayland
quazip
] ++ lib.optionals (qtVersion == "6") [
2022-12-24 12:39:08 +00:00
qt5compat
2022-02-06 13:13:24 +00:00
];
2020-12-21 11:57:26 +00:00
2022-10-29 10:44:23 +00:00
cmakeFlags = [
"-DDISABLE_UPDATER=ON"
"-DUSE_EXTERN_QUAZIP=ON"
2022-12-24 12:39:08 +00:00
"-DMEDIAELCH_FORCE_QT${qtVersion}=ON"
2022-10-29 10:44:23 +00:00
];
# libmediainfo.so.0 is loaded dynamically
2022-02-15 19:27:33 +00:00
qtWrapperArgs = [
"--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;
};
}