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.

39 lines
931 B
Nix
Raw Normal View History

{ ffmpeg_5-full
, nv-codec-headers-11
, fetchFromGitHub
, lib
}:
(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-10-19 15:39:17 +02:00
version = "5.1.2-2";
src = fetchFromGitHub {
owner = "jellyfin";
repo = "jellyfin-ffmpeg";
rev = "v${version}";
2022-10-19 15:39:17 +02:00
sha256 = "sha256-7Icp1vFnvhuohipGK7BqnxhhtX0iB02v5TXvh5sss3c=";
};
configureFlags = old.configureFlags ++ [
"--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 ];
};
})