base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libspectre / package.nix
blob9299e4dbfb137588f130addb6dcb4f697621ff77
1 { fetchurl, lib, stdenv, pkg-config, ghostscript, cairo }:
3 stdenv.mkDerivation rec {
4   pname = "libspectre";
5   version = "0.2.12";
7   src = fetchurl {
8     url = "https://libspectre.freedesktop.org/releases/${pname}-${version}.tar.gz";
9     hash = "sha256-VadRfNNXK9JWXfDPRQlEoE1Sc7J567NpqJU5GVfw+WA=";
10   };
12   nativeBuildInputs = [ pkg-config ];
14   buildInputs = [
15     # Need `libgs.so'.
16     ghostscript
17   ];
19   doCheck = true;
21   checkInputs = [
22     cairo
23   ];
25   meta = {
26     homepage = "http://libspectre.freedesktop.org/";
27     description = "PostScript rendering library";
29     longDescription = ''
30       libspectre is a small library for rendering Postscript
31       documents.  It provides a convenient easy to use API for
32       handling and rendering Postscript documents.
33     '';
35     license = lib.licenses.gpl2Plus;
36     platforms = lib.platforms.unix;
37   };