2008-07-17 20:43:11 +01:00
|
|
|
{ fetchurl, stdenv, ghostscript }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-10-12 08:49:19 +01:00
|
|
|
name = "libspectre-0.2.6";
|
2008-07-17 20:43:11 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://libspectre.freedesktop.org/releases/${name}.tar.gz";
|
2010-10-12 08:49:19 +01:00
|
|
|
sha256 = "1lqdmi7vx497pbigpp77064a4463lmihzh44898l101c69i7qqrg";
|
2008-07-17 20:43:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
# Need `libgs.so'.
|
|
|
|
ghostscript
|
|
|
|
];
|
|
|
|
|
2012-08-08 10:44:04 +01:00
|
|
|
patches = [ ./0001-Fix-a-crash-with-documents-containing-an-invalid-Pag.patch ./0002-Allocate-at-least-1-page-in-doc-pages.patch ];
|
|
|
|
|
2008-07-17 20:43:11 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://libspectre.freedesktop.org/;
|
|
|
|
description = "libspectre, a PostScript rendering library";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
libspectre is a small library for rendering Postscript
|
|
|
|
documents. It provides a convenient easy to use API for
|
|
|
|
handling and rendering Postscript documents.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = "GPLv2+";
|
|
|
|
};
|
|
|
|
}
|