mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 15:15:36 +00:00
33 lines
841 B
Nix
33 lines
841 B
Nix
{ fetchurl, stdenv, ghostscript }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libspectre-0.2.6";
|
|
|
|
src = fetchurl {
|
|
url = "http://libspectre.freedesktop.org/releases/${name}.tar.gz";
|
|
sha256 = "1lqdmi7vx497pbigpp77064a4463lmihzh44898l101c69i7qqrg";
|
|
};
|
|
|
|
buildInputs = [
|
|
# Need `libgs.so'.
|
|
ghostscript
|
|
];
|
|
|
|
patches = [ ./0001-Fix-a-crash-with-documents-containing-an-invalid-Pag.patch ./0002-Allocate-at-least-1-page-in-doc-pages.patch ];
|
|
|
|
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+";
|
|
};
|
|
}
|