2013-01-29 13:23:42 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, ghostscript, cairo }:
|
2008-07-17 21:43:11 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-01-29 13:23:42 +01:00
|
|
|
name = "libspectre-0.2.7";
|
2008-07-17 21:43:11 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://libspectre.freedesktop.org/releases/${name}.tar.gz";
|
2013-01-29 13:23:42 +01:00
|
|
|
sha256 = "1v63lqc6bhhxwkpa43qmz8phqs8ci4dhzizyy16d3vkb20m846z8";
|
2008-07-17 21:43:11 +02:00
|
|
|
};
|
|
|
|
|
2016-01-13 18:48:28 +01:00
|
|
|
patches = [ ./libspectre-0.2.7-gs918.patch ];
|
|
|
|
|
2008-07-17 21:43:11 +02:00
|
|
|
buildInputs = [
|
|
|
|
# Need `libgs.so'.
|
2013-01-29 13:23:42 +01:00
|
|
|
pkgconfig ghostscript cairo /*for tests*/
|
2008-07-17 21:43:11 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://libspectre.freedesktop.org/;
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "PostScript rendering library";
|
2008-07-17 21:43:11 +02:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
libspectre is a small library for rendering Postscript
|
|
|
|
documents. It provides a convenient easy to use API for
|
|
|
|
handling and rendering Postscript documents.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2017-07-13 19:39:14 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-07-17 21:43:11 +02:00
|
|
|
};
|
|
|
|
}
|