1 { fetchurl, lib, stdenv, pkg-config, ghostscript, cairo }:
3 stdenv.mkDerivation rec {
8 url = "https://libspectre.freedesktop.org/releases/${pname}-${version}.tar.gz";
9 sha256 = "1v63lqc6bhhxwkpa43qmz8phqs8ci4dhzizyy16d3vkb20m846z8";
12 patches = [ ./libspectre-0.2.7-gs918.patch ];
14 nativeBuildInputs = [ pkg-config ];
18 ghostscript cairo /*for tests*/
24 homepage = "http://libspectre.freedesktop.org/";
25 description = "PostScript rendering library";
28 libspectre is a small library for rendering Postscript
29 documents. It provides a convenient easy to use API for
30 handling and rendering Postscript documents.
33 license = lib.licenses.gpl2Plus;
34 platforms = lib.platforms.unix;