1 { lib, stdenv, fetchFromGitHub, zlib, ffmpeg_3, pkg-config }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "0dkz5b3gxq5p4xz0qqg6l2sigszrlsinz3skyf0ln4wf3zrvf8m5";
14 NIX_CFLAGS_COMPILE = "-fPIC";
16 nativeBuildInputs = [ pkg-config ];
17 buildInputs = [ zlib ffmpeg_3 ];
19 # ffms includes a built-in vapoursynth plugin, see:
20 # https://github.com/FFMS/ffms2#avisynth-and-vapoursynth-plugin
22 mkdir $out/lib/vapoursynth
23 ln -s $out/lib/libffms2.so $out/lib/vapoursynth/libffms2.so
27 homepage = "https://github.com/FFMS/ffms2/";
28 description = "Libav/ffmpeg based source library for easy frame accurate access";
29 license = licenses.mit;
30 maintainers = with maintainers; [ ];
31 platforms = platforms.unix;