2021-01-21 17:00:13 +00:00
|
|
|
{ fetchurl, lib, stdenv, pkg-config, 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 {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://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'.
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config ghostscript cairo /*for tests*/
|
2008-07-17 20:43:11 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2008-07-17 20:43:11 +01:00
|
|
|
};
|
|
|
|
}
|