audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / li / libspectre / package.nix
blob08f3088282ae5695dd702ea6220ded6a53b576a4
2   fetchurl,
3   lib,
4   stdenv,
5   pkg-config,
6   ghostscript,
7   cairo,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "libspectre";
12   version = "0.2.12";
14   src = fetchurl {
15     url = "https://libspectre.freedesktop.org/releases/${pname}-${version}.tar.gz";
16     hash = "sha256-VadRfNNXK9JWXfDPRQlEoE1Sc7J567NpqJU5GVfw+WA=";
17   };
19   nativeBuildInputs = [ pkg-config ];
21   buildInputs = [
22     # Need `libgs.so'.
23     ghostscript
24   ];
26   doCheck = true;
28   checkInputs = [
29     cairo
30   ];
32   meta = {
33     homepage = "http://libspectre.freedesktop.org/";
34     description = "PostScript rendering library";
36     longDescription = ''
37       libspectre is a small library for rendering Postscript
38       documents.  It provides a convenient easy to use API for
39       handling and rendering Postscript documents.
40     '';
42     license = lib.licenses.gpl2Plus;
43     platforms = lib.platforms.unix;
44   };