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

30 lines
817 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libde265, x265, libpng, libjpeg }:
2018-07-01 10:05:44 +01:00
stdenv.mkDerivation rec {
version = "1.4.0";
2018-07-01 10:05:44 +01:00
name = "libheif-${version}";
src = fetchFromGitHub {
owner = "strukturag";
repo = "libheif";
rev = "v${version}";
sha256 = "0vbjknkb2ccmw3xh2j8ljz5sj9i8wv92iw7zghcc5wn64sk1xkk2";
2018-07-01 10:05:44 +01:00
};
patches = [ ./1.4.0-CVE-2019-11471.patch ];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
2018-07-01 10:05:44 +01:00
buildInputs = [ libde265 x265 libpng libjpeg ];
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 ];
};
}