Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / jellyfin-ffmpeg / default.nix
blobff2fca37fba476058bdfc81afcfdeb8b859b5135
1 { ffmpeg_6-full
2 , nv-codec-headers-12
3 , chromaprint
4 , fetchFromGitHub
5 , lib
6 }:
8 (ffmpeg_6-full.override {
9   nv-codec-headers-11 = nv-codec-headers-12;
10 }).overrideAttrs (old: rec {
11   pname = "jellyfin-ffmpeg";
12   version = "6.0-7";
14   src = fetchFromGitHub {
15     owner = "jellyfin";
16     repo = "jellyfin-ffmpeg";
17     rev = "v${version}";
18     sha256 = "sha256-Z4getn/mVYIRANkIOyt7jMpcqHBvq5GXLK/ST5zV1r4=";
19   };
21   buildInputs = old.buildInputs ++ [ chromaprint ];
23   configureFlags = old.configureFlags ++ [
24     "--extra-version=Jellyfin"
25     "--disable-ptx-compression" # https://github.com/jellyfin/jellyfin/issues/7944#issuecomment-1156880067
26     "--enable-chromaprint"
27   ];
29   postPatch = ''
30     for file in $(cat debian/patches/series); do
31       patch -p1 < debian/patches/$file
32     done
34     ${old.postPatch or ""}
35   '';
37   meta = with lib; {
38     description = "${old.meta.description} (Jellyfin fork)";
39     homepage = "https://github.com/jellyfin/jellyfin-ffmpeg";
40     license = licenses.gpl3;
41     maintainers = with maintainers; [ justinas ];
42   };