From a6e9175b6db1eedc614040a9bcad5638539cf4f1 Mon Sep 17 00:00:00 2001 From: Pavan Rikhi Date: Sun, 4 Jan 2015 10:11:54 -0500 Subject: gdome2: fix expression --- pkgs/development/libraries/gdome2/default.nix | 9 +++++---- pkgs/development/libraries/gdome2/xml-document.patch | 11 +++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 pkgs/development/libraries/gdome2/xml-document.patch (limited to 'pkgs/development/libraries/gdome2') diff --git a/pkgs/development/libraries/gdome2/default.nix b/pkgs/development/libraries/gdome2/default.nix index bf9b645c8f5..cc8f76949ee 100644 --- a/pkgs/development/libraries/gdome2/default.nix +++ b/pkgs/development/libraries/gdome2/default.nix @@ -15,12 +15,13 @@ stdenv.mkDerivation { buildInputs = [pkgconfig glib libxml2 gtkdoc]; propagatedBuildInputs = [glib libxml2]; + patches = [ ./xml-document.patch ]; - meta = { + meta = with stdenv.lib; { homepage = http://gdome2.cs.unibo.it/; description = "DOM C library developed for the Gnome project"; - license = stdenv.lib.licenses.lgpl21Plus; - maintainers = [ stdenv.lib.maintainers.roconnor ]; - broken = true; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ prikhi roconnor ]; + platforms = platforms.linux; }; } diff --git a/pkgs/development/libraries/gdome2/xml-document.patch b/pkgs/development/libraries/gdome2/xml-document.patch new file mode 100644 index 00000000000..7567d1049fc --- /dev/null +++ b/pkgs/development/libraries/gdome2/xml-document.patch @@ -0,0 +1,11 @@ +--- a/libgdome/gdomecore/gdome-xml-documentt.c 2003-07-13 14:47:54.000000000 +0400 ++++ b/libgdome/gdomecore/gdome-xml-documentt.c 2013-07-02 14:09:18.304613703 +0400 +@@ -342,7 +342,7 @@ + } + xmlNodeDumpOutput (out_buff, NULL, (xmlNode *)is, 0, 0, NULL); + xmlOutputBufferFlush(out_buff); +- ret = g_strndup (out_buff->buffer->content, out_buff->buffer->use); ++ ret = g_strndup (xmlBufContent(out_buff), xmlBufUse(out_buff)); + (void)xmlOutputBufferClose(out_buff); + + return gdome_xml_str_mkref_own (ret); -- cgit 1.4.1