2018-12-09 22:55:10 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libde265, x265, libpng, libjpeg }:
|
2018-07-01 10:05:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-10 19:28:28 +00:00
|
|
|
version = "1.4.0";
|
2018-07-01 10:05:44 +01:00
|
|
|
name = "libheif-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strukturag";
|
|
|
|
repo = "libheif";
|
|
|
|
rev = "v${version}";
|
2019-03-10 19:28:28 +00:00
|
|
|
sha256 = "0vbjknkb2ccmw3xh2j8ljz5sj9i8wv92iw7zghcc5wn64sk1xkk2";
|
2018-07-01 10:05:44 +01:00
|
|
|
};
|
|
|
|
|
2019-05-23 01:12:23 +01:00
|
|
|
patches = [ ./1.4.0-CVE-2019-11471.patch ];
|
|
|
|
|
2018-12-09 22:55:10 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2018-07-01 10:05:44 +01:00
|
|
|
buildInputs = [ libde265 x265 libpng libjpeg ];
|
2018-07-03 16:00:41 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2018-07-01 10:05:44 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.libheif.org/";
|
|
|
|
description = "ISO/IEC 23008-12:2017 HEIF image file format decoder and encoder";
|
|
|
|
license = stdenv.lib.licenses.lgpl3;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|