about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libspectre/default.nix
blob: 9299e4dbfb137588f130addb6dcb4f697621ff77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ fetchurl, lib, stdenv, pkg-config, ghostscript, cairo }:

stdenv.mkDerivation rec {
  pname = "libspectre";
  version = "0.2.12";

  src = fetchurl {
    url = "https://libspectre.freedesktop.org/releases/${pname}-${version}.tar.gz";
    hash = "sha256-VadRfNNXK9JWXfDPRQlEoE1Sc7J567NpqJU5GVfw+WA=";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
    # Need `libgs.so'.
    ghostscript
  ];

  doCheck = true;

  checkInputs = [
    cairo
  ];

  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;
  };
}