From a29f9b51d6e3a568c2d992ea32583e66654b129c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 30 Sep 2009 13:11:13 +0000 Subject: [PATCH] Add GOffice, GNOME's office/document library. svn path=/nixpkgs/trunk/; revision=17550 --- .../development/libraries/goffice/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 8 ++++ 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/libraries/goffice/default.nix diff --git a/pkgs/development/libraries/goffice/default.nix b/pkgs/development/libraries/goffice/default.nix new file mode 100644 index 000000000000..b90cbbad9206 --- /dev/null +++ b/pkgs/development/libraries/goffice/default.nix @@ -0,0 +1,40 @@ +{ fetchurl, stdenv, pkgconfig, glib, gtk, libglade, bzip2 +, pango, libgsf, libxml2, libart, intltool, gettext +, cairo, gconf, libgnomeui }: + +stdenv.mkDerivation rec { + name = "goffice-0.6.6"; + + src = fetchurl { + # An old version, but one that's actually usable for Gnucash. + url = "mirror://gnome/sources/goffice/0.6/${name}.tar.bz2"; + sha256 = "11lzhmk7g6mdsbyn4p4a6q2d9m8j71vad2haw6pmzyjzv2gs4rq7"; + }; + + buildInputs = [ + pkgconfig libglade bzip2 libart intltool gettext + gconf libgnomeui + ]; + + propagatedBuildInputs = [ + # All these are in the "Requires:" field of `libgoffice-0.6.pc'. + glib libgsf libxml2 gtk libglade libart cairo pango + ]; + + doCheck = true; + + meta = { + description = "GOffice, a Glib/GTK+ set of document centric objects and utilities"; + + longDescription = '' + There are common operations for document centric applications that are + conceptually simple, but complex to implement fully: plugins, load/save + documents, undo/redo. + ''; + + license = "GPLv2"; + + maintainers = [ stdenv.lib.maintainers.ludo ]; + platforms = stdenv.lib.platforms.gnu; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9749a45c4b89..bf239de815ae 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3324,6 +3324,14 @@ let cxx = true; }; + goffice = import ../development/libraries/goffice { + inherit fetchurl stdenv pkgconfig libgsf libxml2 cairo + intltool gettext bzip2; + inherit (gnome) glib gtk libglade libgnomeui pango; + gconf = gnome.GConf; + libart = gnome.libart_lgpl; + }; + goocanvas = import ../development/libraries/goocanvas { inherit fetchurl stdenv pkgconfig cairo; inherit (gnome) gtk glib;