2021-02-11 06:34:09 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, dav1d, rav1e, libde265, x265, libpng,
|
2020-10-04 14:18:35 +02:00
|
|
|
libjpeg, libaom }:
|
2018-07-01 11:05:44 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libheif";
|
2021-02-11 06:34:09 +01:00
|
|
|
version = "1.11.0";
|
2019-11-20 21:59:53 +01:00
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
2018-07-01 11:05:44 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strukturag";
|
|
|
|
repo = "libheif";
|
|
|
|
rev = "v${version}";
|
2021-02-11 06:34:09 +01:00
|
|
|
sha256 = "sha256-xT0sfYPp5atYXnVpP8TYu2TC9/Z/ClyEP1OTSfcw1gw=";
|
2018-07-01 11:05:44 +02:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2021-02-11 06:34:09 +01:00
|
|
|
buildInputs = [ dav1d rav1e libde265 x265 libpng libjpeg libaom ];
|
2018-07-03 17:00:41 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2018-07-01 11:05:44 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.libheif.org/";
|
|
|
|
description = "ISO/IEC 23008-12:2017 HEIF image file format decoder and encoder";
|
2021-02-11 06:34:09 +01:00
|
|
|
license = lib.licenses.lgpl3Plus;
|
2021-01-21 18:00:13 +01:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ gebner ];
|
2018-07-01 11:05:44 +02:00
|
|
|
};
|
|
|
|
}
|