2021-03-09 03:18:52 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, dav1d, rav1e, libde265, x265, libpng,
|
2020-10-16 20:44:37 +00:00
|
|
|
libjpeg, libaom }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libheif";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "1.13.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strukturag";
|
|
|
|
repo = "libheif";
|
|
|
|
rev = "v${version}";
|
2022-09-22 12:36:57 +00:00
|
|
|
sha256 = "sha256-/w/I6dgyiAscUqVpPjw2z6LbZJ6IBTeE5lawLg0awTM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2021-03-09 03:18:52 +00:00
|
|
|
buildInputs = [ dav1d rav1e libde265 x265 libpng libjpeg libaom ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.libheif.org/";
|
|
|
|
description = "ISO/IEC 23008-12:2017 HEIF image file format decoder and encoder";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = lib.licenses.lgpl3Plus;
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ gebner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|