diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/ffms/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/ffms/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/ffms/default.nix b/nixpkgs/pkgs/development/libraries/ffms/default.nix new file mode 100644 index 000000000000..7fa96cff7f88 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/ffms/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchFromGitHub, zlib, ffmpeg_3, pkg-config }: + +stdenv.mkDerivation rec { + pname = "ffms"; + version = "2.23"; + + src = fetchFromGitHub { + owner = "FFMS"; + repo = "ffms2"; + rev = version; + sha256 = "0dkz5b3gxq5p4xz0qqg6l2sigszrlsinz3skyf0ln4wf3zrvf8m5"; + }; + + NIX_CFLAGS_COMPILE = "-fPIC"; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ zlib ffmpeg_3 ]; + + # 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 + ''; + + meta = with lib; { + homepage = "https://github.com/FFMS/ffms2/"; + description = "Libav/ffmpeg based source library for easy frame accurate access"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + platforms = platforms.unix; + }; +} |