2023-02-06 16:43:21 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, meson, ninja, nasm }:
|
2019-10-08 21:50:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libvmaf";
|
2022-04-22 04:20:00 +00:00
|
|
|
version = "2.3.1";
|
2019-10-08 21:50:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "netflix";
|
|
|
|
repo = "vmaf";
|
|
|
|
rev = "v${version}";
|
2022-04-22 04:20:00 +00:00
|
|
|
sha256 = "sha256-TkMy2tEdG1FPPWfH/wPnVbs5kocqe4Y0jU4yvbiRZ9k=";
|
2019-10-08 21:50:39 +00:00
|
|
|
};
|
|
|
|
|
2020-02-29 09:20:00 +00:00
|
|
|
sourceRoot = "source/libvmaf";
|
|
|
|
|
2023-02-06 16:43:21 +00:00
|
|
|
patches = [
|
|
|
|
# Backport fix for non-Linux, non-Darwin platforms.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Netflix/vmaf/commit/f47640f9ffee9494571bd7c9622e353660c93fc4.patch";
|
|
|
|
stripLen = 1;
|
|
|
|
sha256 = "rsTKuqp8VJG5DBDpixPke3LrdfjKzUO945i+iL0n7CY=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-08-24 23:40:00 +00:00
|
|
|
nativeBuildInputs = [ meson ninja nasm ];
|
2020-12-30 04:20:00 +00:00
|
|
|
|
|
|
|
mesonFlags = [ "-Denable_avx512=true" ];
|
|
|
|
|
2019-10-08 21:50:39 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2020-12-30 04:20:00 +00:00
|
|
|
doCheck = false;
|
2019-10-08 21:50:39 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-10-22 17:33:30 +00:00
|
|
|
description = "Perceptual video quality assessment based on multi-method fusion (VMAF)";
|
2022-05-05 00:52:27 +00:00
|
|
|
homepage = "https://github.com/Netflix/vmaf";
|
2021-10-20 02:38:24 +00:00
|
|
|
changelog = "https://github.com/Netflix/vmaf/raw/v${version}/CHANGELOG.md";
|
2020-07-03 04:18:37 +00:00
|
|
|
license = licenses.bsd2Patent;
|
2020-02-29 09:21:00 +00:00
|
|
|
maintainers = [ maintainers.cfsmp3 maintainers.marsam ];
|
2022-05-05 00:52:27 +00:00
|
|
|
mainProgram = "vmaf";
|
|
|
|
platforms = platforms.unix;
|
2019-10-08 21:50:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|