nixpkgs/pkgs/development/libraries/jellyfin-ffmpeg/default.nix
Atemu bb22f338b6 jellyfin-ffmpeg: use ffmpeg's new override interface
This causes a rebuild because aribcaption and harfbuzz were in the buildInputs
before but not actually used (at least jopejoe1 and I believe so).
2024-03-15 11:26:32 +01:00

45 lines
1.1 KiB
Nix

{ ffmpeg_6-full
, fetchFromGitHub
, lib
}:
let
version = "6.0.1-3";
in
(ffmpeg_6-full.override {
inherit version; # Important! This sets the ABI.
source = fetchFromGitHub {
owner = "jellyfin";
repo = "jellyfin-ffmpeg";
rev = "v${version}";
hash = "sha256-UINiXO61nB/AL0HJJy7G7emujakk/mQv81aUioyJz0Y=";
};
}).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" ];
};
})