4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
{ ffmpeg_5-full
|
|
, nv-codec-headers-11
|
|
, chromaprint
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
(ffmpeg_5-full.override {
|
|
nv-codec-headers = nv-codec-headers-11;
|
|
}).overrideAttrs (old: rec {
|
|
pname = "jellyfin-ffmpeg";
|
|
version = "5.1.2-8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jellyfin";
|
|
repo = "jellyfin-ffmpeg";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-0ne9Xj9MnB5WOkPRtPX7W30qG1osHd0tyua+5RMrnQc=";
|
|
};
|
|
|
|
buildInputs = old.buildInputs ++ [ chromaprint ];
|
|
|
|
configureFlags = old.configureFlags ++ [
|
|
"--extra-version=Jellyfin"
|
|
"--disable-ptx-compression" # https://github.com/jellyfin/jellyfin/issues/7944#issuecomment-1156880067
|
|
"--enable-chromaprint"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
})
|