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