ffms: 2.23 -> 2.40

https://github.com/FFMS/ffms2/releases/tag/2.40

@tadeokondrak agreed to being a maintainer:
https://github.com/NixOS/nixpkgs/pull/120846#issuecomment-827849034
This commit is contained in:
Robert Schütz 2021-04-27 12:00:17 +02:00
parent e20f991a11
commit c287776d9e

View file

@ -1,20 +1,38 @@
{ lib, stdenv, fetchFromGitHub, zlib, ffmpeg_3, pkg-config }:
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, ffmpeg
, zlib
}:
stdenv.mkDerivation rec {
pname = "ffms";
version = "2.23";
version = "2.40";
src = fetchFromGitHub {
owner = "FFMS";
repo = "ffms2";
rev = version;
sha256 = "0dkz5b3gxq5p4xz0qqg6l2sigszrlsinz3skyf0ln4wf3zrvf8m5";
sha256 = "sha256-3bPxt911T0bGpAIS2RxBjo+VV84xW06eKcCj3ZAcmvw=";
};
NIX_CFLAGS_COMPILE = "-fPIC";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ zlib ffmpeg_3 ];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
preAutoreconf = ''
mkdir src/config
'';
buildInputs = [
ffmpeg
zlib
];
# ffms includes a built-in vapoursynth plugin, see:
# https://github.com/FFMS/ffms2#avisynth-and-vapoursynth-plugin
@ -25,9 +43,9 @@ stdenv.mkDerivation rec {
meta = with lib; {
homepage = "https://github.com/FFMS/ffms2/";
description = "Libav/ffmpeg based source library for easy frame accurate access";
description = "FFmpeg based source library for easy frame accurate access";
license = licenses.mit;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ tadeokondrak ];
platforms = platforms.unix;
};
}