diff --git a/pkgs/development/libraries/libspectre/default.nix b/pkgs/development/libraries/libspectre/default.nix new file mode 100644 index 000000000000..6b69540d2b96 --- /dev/null +++ b/pkgs/development/libraries/libspectre/default.nix @@ -0,0 +1,30 @@ +{ fetchurl, stdenv, ghostscript }: + +stdenv.mkDerivation rec { + name = "libspectre-0.2.0"; + + src = fetchurl { + url = "http://libspectre.freedesktop.org/releases/${name}.tar.gz"; + sha256 = "0j75c84gqmfr6hbhiydri4msrxns8293lfxi7hkcnfa15v8qa0i0"; + }; + + buildInputs = [ + # Need `libgs.so'. + ghostscript + ]; + + doCheck = true; + + meta = { + homepage = http://libspectre.freedesktop.org/; + description = "libspectre, a 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 = "GPLv2+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3d5ab00bd861..13e64b7a0114 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2969,6 +2969,11 @@ let pkgs = rec { inherit fetchurl stdenv mkDerivationByConfiguration pkgconfig lib; }; + libspectre = import ../development/libraries/libspectre { + inherit fetchurl stdenv; + ghostscript = ghostscriptX; + }; + libgsf = import ../development/libraries/libgsf { inherit fetchurl stdenv perl perlXMLParser pkgconfig libxml2 gettext bzip2 python; inherit (gnome) glib gnomevfs libbonobo;