1{ fetchurl, stdenv, pkgconfig, ghostscript, cairo }:
2
3stdenv.mkDerivation rec {
4 name = "libspectre-0.2.7";
5
6 src = fetchurl {
7 url = "http://libspectre.freedesktop.org/releases/${name}.tar.gz";
8 sha256 = "1v63lqc6bhhxwkpa43qmz8phqs8ci4dhzizyy16d3vkb20m846z8";
9 };
10
11 patches = [ ./libspectre-0.2.7-gs918.patch ];
12
13 buildInputs = [
14 # Need `libgs.so'.
15 pkgconfig ghostscript cairo /*for tests*/
16 ];
17
18 doCheck = true;
19
20 meta = {
21 homepage = http://libspectre.freedesktop.org/;
22 description = "PostScript rendering library";
23
24 longDescription = ''
25 libspectre is a small library for rendering Postscript
26 documents. It provides a convenient easy to use API for
27 handling and rendering Postscript documents.
28 '';
29
30 license = stdenv.lib.licenses.gpl2Plus;
31 platforms = stdenv.lib.platforms.unix;
32 };
33}