mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
21f17d69f6
Build-tested on x86_64 Linux & Mac.
34 lines
853 B
Nix
34 lines
853 B
Nix
{ fetchurl, stdenv, pkgconfig, ghostscript, cairo }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libspectre-0.2.7";
|
|
|
|
src = fetchurl {
|
|
url = "http://libspectre.freedesktop.org/releases/${name}.tar.gz";
|
|
sha256 = "1v63lqc6bhhxwkpa43qmz8phqs8ci4dhzizyy16d3vkb20m846z8";
|
|
};
|
|
|
|
patches = [ ./libspectre-0.2.7-gs918.patch ];
|
|
|
|
buildInputs = [
|
|
# Need `libgs.so'.
|
|
pkgconfig ghostscript cairo /*for tests*/
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
homepage = http://libspectre.freedesktop.org/;
|
|
description = "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 = stdenv.lib.licenses.gpl2Plus;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|