nixpkgs/pkgs/development/libraries/libvmaf/default.nix
Malo Bourgon 9e4be53221 treewide: add meta.mainProgram to some libraries
where a single bin is provided and someone might actually want to run it
2022-05-04 18:11:50 -07:00

34 lines
869 B
Nix

{ lib, stdenv, fetchFromGitHub, meson, ninja, nasm }:
stdenv.mkDerivation rec {
pname = "libvmaf";
version = "2.3.1";
src = fetchFromGitHub {
owner = "netflix";
repo = "vmaf";
rev = "v${version}";
sha256 = "sha256-TkMy2tEdG1FPPWfH/wPnVbs5kocqe4Y0jU4yvbiRZ9k=";
};
sourceRoot = "source/libvmaf";
nativeBuildInputs = [ meson ninja nasm ];
mesonFlags = [ "-Denable_avx512=true" ];
outputs = [ "out" "dev" ];
doCheck = false;
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";
license = licenses.bsd2Patent;
maintainers = [ maintainers.cfsmp3 maintainers.marsam ];
mainProgram = "vmaf";
platforms = platforms.unix;
};
}