about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libspectre/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libspectre/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/libspectre/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libspectre/default.nix b/nixpkgs/pkgs/development/libraries/libspectre/default.nix
new file mode 100644
index 000000000000..f1e4169bd48e
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libspectre/default.nix
@@ -0,0 +1,33 @@
+{ fetchurl, stdenv, pkgconfig, ghostscript, cairo }:
+
+stdenv.mkDerivation rec {
+  name = "libspectre-0.2.7";
+
+  src = fetchurl {
+    url = "https://libspectre.freedesktop.org/releases/${name}.tar.gz";
+    sha256 = "1v63lqc6bhhxwkpa43qmz8phqs8ci4dhzizyy16d3vkb20m846z8";
+  };
+
+  patches = [ ./libspectre-0.2.7-gs918.patch ];
+
+  buildInputs = [
+    # Need `libgs.so'.
+    pkgconfig 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 = stdenv.lib.licenses.gpl2Plus;
+    platforms = stdenv.lib.platforms.unix;
+  };
+}