2022-11-20 16:16:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, dav1d
|
|
|
|
, rav1e
|
|
|
|
, libde265
|
|
|
|
, x265
|
|
|
|
, libpng
|
|
|
|
, libjpeg
|
|
|
|
, libaom
|
2023-01-26 21:18:56 +00:00
|
|
|
, gdk-pixbuf
|
2022-11-20 16:16:59 +00:00
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
, gimp
|
|
|
|
, imagemagick
|
|
|
|
, imlib2Full
|
|
|
|
, imv
|
|
|
|
, vips
|
|
|
|
}:
|
2018-07-01 09:05:44 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libheif";
|
2023-02-25 19:28:33 +00:00
|
|
|
version = "1.15.1";
|
2019-11-20 20:59:53 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
2018-07-01 09:05:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "strukturag";
|
|
|
|
repo = "libheif";
|
|
|
|
rev = "v${version}";
|
2023-02-25 19:28:33 +00:00
|
|
|
sha256 = "sha256-5908S46hEXhCYcTsqulmUnat0KOlXsnY5LI/l1l7/1Q=";
|
2018-07-01 09:05:44 +00:00
|
|
|
};
|
|
|
|
|
2023-01-26 21:18:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dav1d
|
|
|
|
rav1e
|
|
|
|
libde265
|
|
|
|
x265
|
|
|
|
libpng
|
|
|
|
libjpeg
|
|
|
|
libaom
|
|
|
|
gdk-pixbuf
|
|
|
|
];
|
2018-07-03 15:00:41 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2018-07-01 09:05:44 +00:00
|
|
|
|
2023-01-26 21:18:56 +00:00
|
|
|
# Fix installation path for gdk-pixbuf module
|
|
|
|
PKG_CONFIG_GDK_PIXBUF_2_0_GDK_PIXBUF_MODULEDIR = "${placeholder "out"}/${gdk-pixbuf.moduleDir}";
|
|
|
|
|
2022-11-20 16:16:59 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit gimp imagemagick imlib2Full imv vips;
|
|
|
|
};
|
|
|
|
|
2018-07-01 09:05:44 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.libheif.org/";
|
|
|
|
description = "ISO/IEC 23008-12:2017 HEIF image file format decoder and encoder";
|
2021-02-11 05:34:09 +00:00
|
|
|
license = lib.licenses.lgpl3Plus;
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ gebner ];
|
2018-07-01 09:05:44 +00:00
|
|
|
};
|
|
|
|
}
|