diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libvmaf/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libvmaf/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libvmaf/default.nix b/nixpkgs/pkgs/development/libraries/libvmaf/default.nix new file mode 100644 index 000000000000..c4b945bed446 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libvmaf/default.nix @@ -0,0 +1,32 @@ +{ lib, stdenv, fetchFromGitHub, meson, ninja, nasm }: + +stdenv.mkDerivation rec { + pname = "libvmaf"; + version = "2.1.1"; + + src = fetchFromGitHub { + owner = "netflix"; + repo = "vmaf"; + rev = "v${version}"; + sha256 = "0dynk1pmsyf23vfxljaazqkr27vfrvhj3dyjzm06zxpzsn59aif3"; + }; + + sourceRoot = "source/libvmaf"; + + nativeBuildInputs = [ meson ninja nasm ]; + + mesonFlags = [ "-Denable_avx512=true" ]; + + outputs = [ "out" "dev" ]; + doCheck = false; + + meta = with lib; { + homepage = "https://github.com/Netflix/vmaf"; + description = "Perceptual video quality assessment based on multi-method fusion (VMAF)"; + changelog = "https://github.com/Netflix/vmaf/blob/v${version}/CHANGELOG.md"; + platforms = platforms.unix; + license = licenses.bsd2Patent; + maintainers = [ maintainers.cfsmp3 maintainers.marsam ]; + }; + +} |