git.iko.soy/typeable/nixpkgs
on master help sign in
gdome2: fix expression
commita6e9175b6db1eedc614040a9bcad5638539cf4f1 authorPavan Rikhi <pavan.rikhi+agit@gmail.com> dateSun 4 Jan 2015, 10:11 (12 years ago) parent56ea7c4
2 files changed+16−4
pkgs/development/libraries/gdome2/default.nix+5−4 pkgs/development/libraries/gdome2/xml-document.patch+11
pkgs/development/libraries/gdome2/default.nix+5−4
@@ -15,12 +15,13 @@ stdenv.mkDerivation {
1515
1616 buildInputs = [pkgconfig glib libxml2 gtkdoc];
1717 propagatedBuildInputs = [glib libxml2];
18+ patches = [ ./xml-document.patch ];
1819
19− meta = {
20+ meta = with stdenv.lib; {
2021 homepage = http://gdome2.cs.unibo.it/;
2122 description = "DOM C library developed for the Gnome project";
22− license = stdenv.lib.licenses.lgpl21Plus;
23− maintainers = [ stdenv.lib.maintainers.roconnor ];
24− broken = true;
23+ license = licenses.lgpl21Plus;
24+ maintainers = with maintainers; [ prikhi roconnor ];
25+ platforms = platforms.linux;
2526 };
2627}
pkgs/development/libraries/gdome2/xml-document.patchnew file+11
@@ -0,0 +1,11 @@
1+--- a/libgdome/gdomecore/gdome-xml-documentt.c 2003-07-13 14:47:54.000000000 +0400
2++++ b/libgdome/gdomecore/gdome-xml-documentt.c 2013-07-02 14:09:18.304613703 +0400
3+@@ -342,7 +342,7 @@
4+ }
5+ xmlNodeDumpOutput (out_buff, NULL, (xmlNode *)is, 0, 0, NULL);
6+ xmlOutputBufferFlush(out_buff);
7+- ret = g_strndup (out_buff->buffer->content, out_buff->buffer->use);
8++ ret = g_strndup (xmlBufContent(out_buff), xmlBufUse(out_buff));
9+ (void)xmlOutputBufferClose(out_buff);
10+
11+ return gdome_xml_str_mkref_own (ret);