2013-01-29 04:23:42 -08:00
|
|
|
{ fetchurl, stdenv, pkgconfig, ghostscript, cairo }:
|
2008-07-17 12:43:11 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-01-29 04:23:42 -08:00
|
|
|
name = "libspectre-0.2.7";
|
2008-07-17 12:43:11 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://libspectre.freedesktop.org/releases/${name}.tar.gz";
|
2013-01-29 04:23:42 -08:00
|
|
|
sha256 = "1v63lqc6bhhxwkpa43qmz8phqs8ci4dhzizyy16d3vkb20m846z8";
|
2008-07-17 12:43:11 -07:00
|
|
|
};
|
|
|
|
|
2016-01-13 09:48:28 -08:00
|
|
|
patches = [ ./libspectre-0.2.7-gs918.patch ];
|
|
|
|
|
2008-07-17 12:43:11 -07:00
|
|
|
buildInputs = [
|
|
|
|
# Need `libgs.so'.
|
2013-01-29 04:23:42 -08:00
|
|
|
pkgconfig ghostscript cairo /*for tests*/
|
2008-07-17 12:43:11 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://libspectre.freedesktop.org/;
|
2014-08-24 07:21:08 -07:00
|
|
|
description = "PostScript rendering library";
|
2008-07-17 12:43:11 -07: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-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-07-17 12:43:11 -07:00
|
|
|
};
|
|
|
|
}
|