1{ stdenv, fetchFromGitHub, zlib, ffmpeg, pkgconfig }:
2
3stdenv.mkDerivation rec {
4 name = "ffms-${version}";
5 version = "2.22";
6
7 src = fetchFromGitHub {
8 owner = "FFMS";
9 repo = "ffms2";
10 rev = version;
11 sha256 = "1ywcx1f3q533qfrbck5qhik3l617qhm062l8zixv02gnla7w6rkm";
12 };
13
14 NIX_CFLAGS_COMPILE = "-fPIC";
15
16 nativeBuildInputs = [ pkgconfig ];
17 buildInputs = [ zlib ffmpeg ];
18
19 meta = with stdenv.lib; {
20 homepage = https://github.com/FFMS/ffms2/;
21 description = "Libav/ffmpeg based source library for easy frame accurate access";
22 license = licenses.mit;
23 maintainers = with maintainers; [ fuuzetsu ];
24 platforms = platforms.unix;
25 };
26}