mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ ffmpeg_6-full
|
|
, chromaprint
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
ffmpeg_6-full.overrideAttrs (old: rec {
|
|
pname = "jellyfin-ffmpeg";
|
|
version = "6.0.1-2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jellyfin";
|
|
repo = "jellyfin-ffmpeg";
|
|
rev = "v${version}";
|
|
hash = "sha256-wc9OGwjcRDTDxlHYVTlbLe1B/F11z0Xcz6WRrO42zn4=";
|
|
};
|
|
|
|
# Clobber upstream patches as they don't apply to the Jellyfin fork
|
|
patches = [];
|
|
|
|
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 ];
|
|
pkgConfigModules = [ "libavutil" ];
|
|
};
|
|
})
|