2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libde265, x265, libpng,
|
2020-10-04 13:18:35 +01:00
|
|
|
libjpeg, libaom }:
|
2018-07-01 10:05:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libheif";
|
2020-10-04 13:18:35 +01:00
|
|
|
version = "1.9.1";
|
2019-11-20 20:59:53 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
2018-07-01 10:05:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strukturag";
|
|
|
|
repo = "libheif";
|
|
|
|
rev = "v${version}";
|
2020-10-04 13:18:35 +01:00
|
|
|
sha256 = "0hjs1i076jmy4ryj8y2zs293wx53kzg38y8i42cbcsqydvsdp6hz";
|
2018-07-01 10:05:44 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-10-04 13:18:35 +01:00
|
|
|
buildInputs = [ libde265 x265 libpng libjpeg libaom ];
|
|
|
|
# TODO: enable dav1d and rav1e codecs when libheif can find them via pkg-config
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|