2017-03-12 23:24:05 +03:00
|
|
|
{ stdenv, fetchFromGitHub, zlib, ffmpeg, pkgconfig }:
|
2013-04-10 17:12:02 +04:00
|
|
|
|
2013-12-16 17:32:50 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "ffms";
|
2019-03-02 07:54:45 +03:00
|
|
|
version = "2.23";
|
2013-12-16 17:32:50 +04:00
|
|
|
|
2017-03-12 23:24:05 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FFMS";
|
|
|
|
repo = "ffms2";
|
|
|
|
rev = version;
|
2019-03-02 07:54:45 +03:00
|
|
|
sha256 = "0dkz5b3gxq5p4xz0qqg6l2sigszrlsinz3skyf0ln4wf3zrvf8m5";
|
2013-04-10 17:12:02 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-fPIC";
|
|
|
|
|
2017-03-12 23:24:05 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ zlib ffmpeg ];
|
2013-04-10 17:12:02 +04:00
|
|
|
|
2019-06-26 02:12:38 +03:00
|
|
|
# ffms includes a built-in vapoursynth plugin, see:
|
|
|
|
# https://github.com/FFMS/ffms2#avisynth-and-vapoursynth-plugin
|
|
|
|
postInstall = ''
|
|
|
|
mkdir $out/lib/vapoursynth
|
|
|
|
ln -s $out/lib/libffms2.so $out/lib/vapoursynth/libffms2.so
|
|
|
|
'';
|
|
|
|
|
2017-03-12 23:24:05 +03:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/FFMS/ffms2/";
|
2013-04-10 17:12:02 +04:00
|
|
|
description = "Libav/ffmpeg based source library for easy frame accurate access";
|
2017-03-12 23:24:05 +03:00
|
|
|
license = licenses.mit;
|
2019-12-05 10:29:48 +03:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-03-12 23:24:05 +03:00
|
|
|
platforms = platforms.unix;
|
2013-04-10 17:12:02 +04:00
|
|
|
};
|
|
|
|
}
|