1{ lib, stdenv, fetchFromGitHub, cmake, zlib, libpng }:
2
3stdenv.mkDerivation rec {
4 pname = "libharu";
5 version = "2.4.0";
6
7 src = fetchFromGitHub {
8 owner = "libharu";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-85o9pb2zJVYbM0SHxCNgJuDkcsHuFuwFe6B6xivoUUg=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ zlib libpng ];
16
17 meta = {
18 description = "Cross platform, open source library for generating PDF files";
19 homepage = "http://libharu.org/";
20 license = lib.licenses.zlib;
21 maintainers = [ lib.maintainers.marcweber ];
22 platforms = lib.platforms.unix;
23 };
24}