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

30 lines
834 B
Nix
Raw Normal View History

{ 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 {
pname = "libheif";
2021-05-06 08:28:35 +02:00
version = "1.12.0";
outputs = [ "bin" "out" "dev" "man" ];
2018-07-01 11:05:44 +02:00
src = fetchFromGitHub {
owner = "strukturag";
repo = "libheif";
rev = "v${version}";
2021-05-06 08:28:35 +02:00
sha256 = "sha256-RjGLaDSBO8T7ijRb5a16aUlkCy5vdFPs4O9caIJo4jI=";
2018-07-01 11:05:44 +02:00
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ dav1d rav1e libde265 x265 libpng libjpeg libaom ];
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";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ gebner ];
2018-07-01 11:05:44 +02:00
};
}