nixpkgs/pkgs/development/libraries/libspectre/default.nix

35 lines
876 B
Nix
Raw Normal View History

{ fetchurl, lib, stdenv, pkg-config, ghostscript, cairo }:
stdenv.mkDerivation rec {
2021-06-20 14:15:21 +00:00
pname = "libspectre";
version = "0.2.7";
src = fetchurl {
2021-06-20 14:15:21 +00:00
url = "https://libspectre.freedesktop.org/releases/${pname}-${version}.tar.gz";
sha256 = "1v63lqc6bhhxwkpa43qmz8phqs8ci4dhzizyy16d3vkb20m846z8";
};
2016-01-13 17:48:28 +00:00
patches = [ ./libspectre-0.2.7-gs918.patch ];
buildInputs = [
# Need `libgs.so'.
pkg-config 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 = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
};
}