2017-03-12 21:24:05 +01:00
|
|
|
{ stdenv, fetchFromGitHub, zlib, ffmpeg, pkgconfig }:
|
2013-04-10 15:12:02 +02:00
|
|
|
|
2013-12-16 14:32:50 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-03-12 21:24:05 +01:00
|
|
|
name = "ffms-${version}";
|
|
|
|
version = "2.22";
|
2013-12-16 14:32:50 +01:00
|
|
|
|
2017-03-12 21:24:05 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FFMS";
|
|
|
|
repo = "ffms2";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1ywcx1f3q533qfrbck5qhik3l617qhm062l8zixv02gnla7w6rkm";
|
2013-04-10 15:12:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-fPIC";
|
|
|
|
|
2017-03-12 21:24:05 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ zlib ffmpeg ];
|
2013-04-10 15:12:02 +02:00
|
|
|
|
2017-03-12 21:24:05 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://github.com/FFMS/ffms2/;
|
2013-04-10 15:12:02 +02:00
|
|
|
description = "Libav/ffmpeg based source library for easy frame accurate access";
|
2017-03-12 21:24:05 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fuuzetsu ];
|
|
|
|
platforms = platforms.unix;
|
2013-04-10 15:12:02 +02:00
|
|
|
};
|
|
|
|
}
|