587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ ffmpeg_6-full
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
let
|
|
version = "6.0.1-5";
|
|
in
|
|
|
|
(ffmpeg_6-full.override {
|
|
inherit version; # Important! This sets the ABI.
|
|
source = fetchFromGitHub {
|
|
owner = "jellyfin";
|
|
repo = "jellyfin-ffmpeg";
|
|
rev = "v${version}";
|
|
hash = "sha256-y/J4iBbqtyyMnTb6R3lTVSOQD8oPo8liyVA5GQ5BvmM=";
|
|
};
|
|
}).overrideAttrs (old: {
|
|
pname = "jellyfin-ffmpeg";
|
|
|
|
# Clobber upstream patches as they don't apply to the Jellyfin fork
|
|
patches = [];
|
|
|
|
configureFlags = old.configureFlags ++ [
|
|
"--extra-version=Jellyfin"
|
|
"--disable-ptx-compression" # https://github.com/jellyfin/jellyfin/issues/7944#issuecomment-1156880067
|
|
];
|
|
|
|
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 ];
|
|
pkgConfigModules = [ "libavutil" ];
|
|
};
|
|
})
|