2019-10-08 22:50:39 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoconf, automake, intltool, libtool, pkgconfig }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libvmaf";
|
|
|
|
version = "1.3.15";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "netflix";
|
|
|
|
repo = "vmaf";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256="10kgcdf06hzhbl5r7zsllq88bxbyn282hfqx5i3hkp66fpq896d2";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf automake intltool libtool pkgconfig ];
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
doCheck = true;
|
|
|
|
|
2019-10-22 18:33:30 +01:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$dev/lib/pkgconfig/libvmaf.pc" \
|
|
|
|
--replace "includedir=/usr/local/include" "includedir=$dev"
|
|
|
|
'';
|
|
|
|
|
2019-10-08 22:50:39 +01:00
|
|
|
makeFlags = [ "INSTALL_PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/Netflix/vmaf";
|
2019-10-22 18:33:30 +01:00
|
|
|
description = "Perceptual video quality assessment based on multi-method fusion (VMAF)";
|
2019-10-08 22:50:39 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.cfsmp3 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|