nixpkgs/pkgs/development/libraries/ffms/default.nix

34 lines
900 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, zlib, ffmpeg_3, pkgconfig }:
2013-12-16 13:32:50 +00:00
stdenv.mkDerivation rec {
pname = "ffms";
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;
sha256 = "0dkz5b3gxq5p4xz0qqg6l2sigszrlsinz3skyf0ln4wf3zrvf8m5";
};
NIX_CFLAGS_COMPILE = "-fPIC";
2017-03-12 20:24:05 +00:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ zlib ffmpeg_3 ];
2019-06-25 23:12:38 +00: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 20:24:05 +00:00
meta = with stdenv.lib; {
homepage = "https://github.com/FFMS/ffms2/";
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; [ ];
2017-03-12 20:24:05 +00:00
platforms = platforms.unix;
};
}