2023-08-04 22:07:22 +00:00
|
|
|
{ ffmpeg_6-full
|
2022-12-28 21:21:41 +00:00
|
|
|
, chromaprint
|
2022-07-14 12:49:19 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
ffmpeg_6-full.overrideAttrs (old: rec {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "jellyfin-ffmpeg";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "6.0.1-1";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jellyfin";
|
|
|
|
repo = "jellyfin-ffmpeg";
|
|
|
|
rev = "v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-LMwGxx++z6TpZLnpeRGraid4653Mp8T4pY5EP4Z7GXY=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
buildInputs = old.buildInputs ++ [ chromaprint ];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
configureFlags = old.configureFlags ++ [
|
2022-12-28 21:21:41 +00:00
|
|
|
"--extra-version=Jellyfin"
|
2022-08-12 12:06:08 +00:00
|
|
|
"--disable-ptx-compression" # https://github.com/jellyfin/jellyfin/issues/7944#issuecomment-1156880067
|
2022-12-28 21:21:41 +00:00
|
|
|
"--enable-chromaprint"
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
for file in $(cat debian/patches/series); do
|
|
|
|
patch -p1 < debian/patches/$file
|
|
|
|
done
|
|
|
|
|
|
|
|
${old.postPatch or ""}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "${old.meta.description} (Jellyfin fork)";
|
|
|
|
homepage = "https://github.com/jellyfin/jellyfin-ffmpeg";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ justinas ];
|
2024-01-02 11:29:13 +00:00
|
|
|
pkgConfigModules = [ "libavutil" ];
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
})
|