about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libspectre/default.nix
blob: 81e661a9421482a1f4e0a65e0fca9760a762b32c (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
{ fetchurl, lib, stdenv, pkg-config, ghostscript, cairo }:

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

  src = fetchurl {
    url = "https://libspectre.freedesktop.org/releases/${pname}-${version}.tar.gz";
    sha256 = "1v63lqc6bhhxwkpa43qmz8phqs8ci4dhzizyy16d3vkb20m846z8";
  };

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