nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ fetchurl, lib, stdenv, pkg-config, ghostscript, cairo }:
2
3stdenv.mkDerivation rec {
4 pname = "libspectre";
5 version = "0.2.7";
6
7 src = fetchurl {
8 url = "https://libspectre.freedesktop.org/releases/${pname}-${version}.tar.gz";
9 sha256 = "1v63lqc6bhhxwkpa43qmz8phqs8ci4dhzizyy16d3vkb20m846z8";
10 };
11
12 patches = [ ./libspectre-0.2.7-gs918.patch ];
13
14 buildInputs = [
15 # Need `libgs.so'.
16 pkg-config ghostscript cairo /*for tests*/
17 ];
18
19 doCheck = true;
20
21 meta = {
22 homepage = "http://libspectre.freedesktop.org/";
23 description = "PostScript rendering library";
24
25 longDescription = ''
26 libspectre is a small library for rendering Postscript
27 documents. It provides a convenient easy to use API for
28 handling and rendering Postscript documents.
29 '';
30
31 license = lib.licenses.gpl2Plus;
32 platforms = lib.platforms.unix;
33 };
34}