2023-06-23 23:14:17 +02:00
|
|
|
{ ffmpeg_6-full
|
|
|
|
, nv-codec-headers-12
|
2022-12-11 21:46:38 +01:00
|
|
|
, chromaprint
|
2022-06-19 21:26:00 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
2022-04-15 03:04:18 +02:00
|
|
|
|
2023-06-23 23:14:17 +02:00
|
|
|
(ffmpeg_6-full.override {
|
|
|
|
nv-codec-headers-11 = nv-codec-headers-12;
|
2022-06-19 21:26:00 +02:00
|
|
|
}).overrideAttrs (old: rec {
|
2022-04-30 02:33:11 +02:00
|
|
|
pname = "jellyfin-ffmpeg";
|
2023-10-17 15:56:39 +02:00
|
|
|
version = "6.0-7";
|
2022-04-15 03:04:18 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jellyfin";
|
|
|
|
repo = "jellyfin-ffmpeg";
|
|
|
|
rev = "v${version}";
|
2023-10-17 15:56:39 +02:00
|
|
|
sha256 = "sha256-Z4getn/mVYIRANkIOyt7jMpcqHBvq5GXLK/ST5zV1r4=";
|
2022-04-15 03:04:18 +02:00
|
|
|
};
|
|
|
|
|
2022-12-11 21:46:38 +01:00
|
|
|
buildInputs = old.buildInputs ++ [ chromaprint ];
|
|
|
|
|
2022-06-19 22:03:14 +02:00
|
|
|
configureFlags = old.configureFlags ++ [
|
2022-12-11 21:46:38 +01:00
|
|
|
"--extra-version=Jellyfin"
|
2022-06-19 22:03:14 +02:00
|
|
|
"--disable-ptx-compression" # https://github.com/jellyfin/jellyfin/issues/7944#issuecomment-1156880067
|
2022-12-11 21:46:38 +01:00
|
|
|
"--enable-chromaprint"
|
2022-06-19 22:03:14 +02:00
|
|
|
];
|
|
|
|
|
2022-04-15 03:04:18 +02: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 ];
|
|
|
|
};
|
|
|
|
})
|