nixpkgs/pkgs/development/libraries/jellyfin-ffmpeg/default.nix

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

49 lines
1.3 KiB
Nix
Raw Normal View History

{ ffmpeg_5-full
, nv-codec-headers-11
, fetchFromGitHub
, lib
2022-09-01 05:46:54 +02:00
, fetchpatch
}:
(ffmpeg_5-full.override {
nv-codec-headers = nv-codec-headers-11;
}).overrideAttrs (old: rec {
2022-04-30 02:33:11 +02:00
pname = "jellyfin-ffmpeg";
2022-08-16 01:47:41 +02:00
version = "5.1-2";
src = fetchFromGitHub {
owner = "jellyfin";
repo = "jellyfin-ffmpeg";
rev = "v${version}";
2022-08-16 01:47:41 +02:00
sha256 = "sha256-lw2W65mbBhiSnegxLSRqDz2WMM82ght/KB4i+5BiL4o=";
};
configureFlags = old.configureFlags ++ [
"--disable-ptx-compression" # https://github.com/jellyfin/jellyfin/issues/7944#issuecomment-1156880067
];
2022-09-01 05:46:54 +02:00
patches = old.patches ++ [
# fixed in upstream ffmpeg 5.1.1 https://trac.ffmpeg.org/ticket/9841
(fetchpatch {
name = "rename-imf-fate-target.patch";
url = "https://github.com/FFmpeg/FFmpeg/commit/80d1b8938eb227f0e9efde91050836b1e9a051a9.patch";
sha256 = "sha256-weUbLKSQ9iRYSQ3hgXcVpo8jfKajpXK21qD1GrZYHYQ=";
})
];
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 ];
};
})