librewolf: 132.0.1 -> 132.0.1-1 (#355483)
[NixPkgs.git] / pkgs / by-name / je / jellyfin-ffmpeg / package.nix
blob16cd0663345de3947553fb3e524bba0a5dfbf520
1 { ffmpeg_7-full
2 , fetchFromGitHub
3 , fetchpatch
4 , lib
5 }:
7 let
8   version = "7.0.2-5";
9 in
11 (ffmpeg_7-full.override {
12   inherit version; # Important! This sets the ABI.
13   source = fetchFromGitHub {
14     owner = "jellyfin";
15     repo = "jellyfin-ffmpeg";
16     rev = "v${version}";
17     hash = "sha256-cqyXQNx65eLEumOoSCucNpAqShMhiPqzsKc/GjKKQOA=";
18   };
19 }).overrideAttrs (old: {
20   pname = "jellyfin-ffmpeg";
22   configureFlags = old.configureFlags ++ [
23     "--extra-version=Jellyfin"
24     "--disable-ptx-compression" # https://github.com/jellyfin/jellyfin/issues/7944#issuecomment-1156880067
25   ];
27   postPatch = ''
28     for file in $(cat debian/patches/series); do
29       patch -p1 < debian/patches/$file
30     done
32     ${old.postPatch or ""}
33   '';
35   meta = {
36     inherit (old.meta) license mainProgram;
37     changelog = "https://github.com/jellyfin/jellyfin-ffmpeg/releases/tag/v${version}";
38     description = "${old.meta.description} (Jellyfin fork)";
39     homepage = "https://github.com/jellyfin/jellyfin-ffmpeg";
40     maintainers = with lib.maintainers; [ justinas ];
41     pkgConfigModules = [ "libavutil" ];
42   };