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.

44 lines
1 KiB
Nix
Raw Normal View History

2023-06-23 23:14:17 +02:00
{ ffmpeg_6-full
, nv-codec-headers-12
2022-12-11 21:46:38 +01:00
, chromaprint
, fetchFromGitHub
, lib
}:
2023-06-23 23:14:17 +02:00
(ffmpeg_6-full.override {
nv-codec-headers-11 = nv-codec-headers-12;
}).overrideAttrs (old: rec {
2022-04-30 02:33:11 +02:00
pname = "jellyfin-ffmpeg";
2023-10-17 15:56:39 +02:00
version = "6.0-7";
src = fetchFromGitHub {
owner = "jellyfin";
repo = "jellyfin-ffmpeg";
rev = "v${version}";
2023-10-17 15:56:39 +02:00
sha256 = "sha256-Z4getn/mVYIRANkIOyt7jMpcqHBvq5GXLK/ST5zV1r4=";
};
2022-12-11 21:46:38 +01:00
buildInputs = old.buildInputs ++ [ chromaprint ];
configureFlags = old.configureFlags ++ [
2022-12-11 21:46:38 +01:00
"--extra-version=Jellyfin"
"--disable-ptx-compression" # https://github.com/jellyfin/jellyfin/issues/7944#issuecomment-1156880067
2022-12-11 21:46:38 +01:00
"--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 ];
};
})