nixpkgs/pkgs/development/libraries/libheif/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, dav1d
, rav1e
, libde265
, x265
, libpng
, libjpeg
, libaom
, gdk-pixbuf
# for passthru.tests
, gimp
, imagemagick
, imlib2Full
, imv
, vips
}:
2018-07-01 09:05:44 +00:00
stdenv.mkDerivation rec {
pname = "libheif";
2023-02-25 19:28:33 +00:00
version = "1.15.1";
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
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
dav1d
rav1e
libde265
x265
libpng
libjpeg
libaom
gdk-pixbuf
];
enableParallelBuilding = true;
2018-07-01 09:05:44 +00:00
# Fix installation path for gdk-pixbuf module
PKG_CONFIG_GDK_PIXBUF_2_0_GDK_PIXBUF_MODULEDIR = "${placeholder "out"}/${gdk-pixbuf.moduleDir}";
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";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ gebner ];
2018-07-01 09:05:44 +00:00
};
}