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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch, meson, ninja, nasm }:
2019-10-08 21:50:39 +00:00
stdenv.mkDerivation rec {
pname = "libvmaf";
version = "2.3.1";
2019-10-08 21:50:39 +00:00
src = fetchFromGitHub {
owner = "netflix";
repo = "vmaf";
rev = "v${version}";
sha256 = "sha256-TkMy2tEdG1FPPWfH/wPnVbs5kocqe4Y0jU4yvbiRZ9k=";
2019-10-08 21:50:39 +00:00
};
sourceRoot = "source/libvmaf";
patches = [
# Backport fix for non-Linux, non-Darwin platforms.
(fetchpatch {
url = "https://github.com/Netflix/vmaf/commit/f47640f9ffee9494571bd7c9622e353660c93fc4.patch";
stripLen = 1;
sha256 = "rsTKuqp8VJG5DBDpixPke3LrdfjKzUO945i+iL0n7CY=";
})
];
nativeBuildInputs = [ meson ninja nasm ];
mesonFlags = [ "-Denable_avx512=true" ];
2019-10-08 21:50:39 +00:00
outputs = [ "out" "dev" ];
doCheck = false;
2019-10-08 21:50:39 +00:00
meta = with lib; {
description = "Perceptual video quality assessment based on multi-method fusion (VMAF)";
homepage = "https://github.com/Netflix/vmaf";
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 ];
mainProgram = "vmaf";
platforms = platforms.unix;
2019-10-08 21:50:39 +00:00
};
}