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