2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, nasm }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libvmaf";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "2.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "netflix";
|
|
|
|
repo = "vmaf";
|
|
|
|
rev = "v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-TkMy2tEdG1FPPWfH/wPnVbs5kocqe4Y0jU4yvbiRZ9k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "source/libvmaf";
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
nativeBuildInputs = [ meson ninja nasm ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
mesonFlags = [ "-Denable_avx512=true" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2021-01-09 10:05:03 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Netflix/vmaf";
|
|
|
|
description = "Perceptual video quality assessment based on multi-method fusion (VMAF)";
|
2021-10-17 09:34:42 +00:00
|
|
|
changelog = "https://github.com/Netflix/vmaf/raw/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.bsd2Patent;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.cfsmp3 maintainers.marsam ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|