<commit_before>{ ffmpeg_4, ffmpeg-full, fetchFromGitHub, lib }:

(ffmpeg-full.override { ffmpeg = ffmpeg_4; }).overrideAttrs (old: rec {
  name = "jellyfin-ffmpeg";
  version = "4.4.1-4";

  src = fetchFromGitHub {
    owner = "jellyfin";
    repo = "jellyfin-ffmpeg";
    rev = "v${version}";
    sha256 = "0y7iskamlx30f0zknbscpi308y685nbnbf5gr9cj1znr5dlfb0bn";
  };

  postPatch = ''
    for file in $(cat debian/patches/series); do
      patch -p1 < debian/patches/$file
    done

    ${old.postPatch or ""}
  '';

  doCheck = false; # https://github.com/jellyfin/jellyfin-ffmpeg/issues/79

  meta = with lib; {
    description = "${old.meta.description} (Jellyfin fork)";
    homepage = "https://github.com/jellyfin/jellyfin-ffmpeg";<commit_msg>jellyfin-ffmpeg: fix pname<commit_after>{ ffmpeg_4, ffmpeg-full, fetchFromGitHub, lib }:

(ffmpeg-full.override { ffmpeg = ffmpeg_4; }).overrideAttrs (old: rec {
  pname = "jellyfin-ffmpeg";
  version = "4.4.1-4";

  src = fetchFromGitHub {
    owner = "jellyfin";
    repo = "jellyfin-ffmpeg";
    rev = "v${version}";
    sha256 = "0y7iskamlx30f0zknbscpi308y685nbnbf5gr9cj1znr5dlfb0bn";
  };

  postPatch = ''
    for file in $(cat debian/patches/series); do
      patch -p1 < debian/patches/$file
    done

    ${old.postPatch or ""}
  '';

  doCheck = false; # https://github.com/jellyfin/jellyfin-ffmpeg/issues/79

  meta = with lib; {
    description = "${old.meta.description} (Jellyfin fork)";
    homepage = "https://github.com/jellyfin/jellyfin-ffmpeg";
{'fraction_non_alphanumeric': 0.1574074074074074, 'fraction_numerical': 0.037037037037037035, 'mean_word_length': 3.45, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '9805', 'n_tokens_mistral': 638, 'n_tokens_neox': 605, 'n_words': 101}