core/pkgs/by-name/li/libspectre/default.nix

38 lines
867 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ fetchurl, lib, stdenv, pkg-config, ghostscript, cairo }:
stdenv.mkDerivation rec {
pname = "libspectre";
version = "0.2.12";
src = fetchurl {
2024-05-13 21:24:10 +00:00
url =
"https://libspectre.freedesktop.org/releases/${pname}-${version}.tar.gz";
2024-05-02 00:46:19 +00:00
hash = "sha256-VadRfNNXK9JWXfDPRQlEoE1Sc7J567NpqJU5GVfw+WA=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
# Need `libgs.so'.
ghostscript
];
doCheck = true;
2024-05-13 21:24:10 +00:00
checkInputs = [ cairo ];
2024-05-02 00:46:19 +00:00
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;
};
}