summary refs log tree commit diff
path: root/pkgs/tools/text/xml
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2013-10-17 14:11:15 -0400
committerShea Levy <shea@shealevy.com>2013-10-17 14:11:15 -0400
commite1ea4e38002b3aceae8c88a021a1c414ae026851 (patch)
tree790167f277fa91c17e8c9733ca1a6b353119ddf4 /pkgs/tools/text/xml
parentee330eaedf31a74577de875d63342a7ab6e0132f (diff)
downloadnixpkgs-e1ea4e38002b3aceae8c88a021a1c414ae026851.tar
nixpkgs-e1ea4e38002b3aceae8c88a021a1c414ae026851.tar.gz
nixpkgs-e1ea4e38002b3aceae8c88a021a1c414ae026851.tar.bz2
nixpkgs-e1ea4e38002b3aceae8c88a021a1c414ae026851.tar.lz
nixpkgs-e1ea4e38002b3aceae8c88a021a1c414ae026851.tar.xz
nixpkgs-e1ea4e38002b3aceae8c88a021a1c414ae026851.tar.zst
nixpkgs-e1ea4e38002b3aceae8c88a021a1c414ae026851.zip
Add htm-xml-utils
Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'pkgs/tools/text/xml')
-rw-r--r--pkgs/tools/text/xml/html-xml-utils/default.nix20
-rw-r--r--pkgs/tools/text/xml/html-xml-utils/no-Boolean-type.patch20
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/text/xml/html-xml-utils/default.nix b/pkgs/tools/text/xml/html-xml-utils/default.nix
new file mode 100644
index 00000000000..f52855dfc53
--- /dev/null
+++ b/pkgs/tools/text/xml/html-xml-utils/default.nix
@@ -0,0 +1,20 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "html-xml-utils-6.4";
+
+  src = fetchurl {
+    url = "http://www.w3.org/Tools/HTML-XML-utils/${name}.tar.gz";
+
+    sha256 = "0dqa8vjk5my728hmb7dhl6nbg7946fh905j0yzlwx7p7rg2zrxcp";
+  };
+
+  patches = [ ./no-Boolean-type.patch ];
+
+  meta = {
+    description = "Utilities for manipulating HTML and XML files";
+    homepage = http://www.w3.org/Tools/HTML-XML-utils/;
+    license = "free-non-copyleft";
+    maintainers = [ stdenv.lib.maintainers.shlevy ];
+  };
+}
diff --git a/pkgs/tools/text/xml/html-xml-utils/no-Boolean-type.patch b/pkgs/tools/text/xml/html-xml-utils/no-Boolean-type.patch
new file mode 100644
index 00000000000..f675c4280e7
--- /dev/null
+++ b/pkgs/tools/text/xml/html-xml-utils/no-Boolean-type.patch
@@ -0,0 +1,20 @@
+diff -Naur html-xml-utils-6.4-orig/openurl.c html-xml-utils-6.4/openurl.c
+--- html-xml-utils-6.4-orig/openurl.c	2012-10-23 09:55:12.000000000 -0400
++++ html-xml-utils-6.4/openurl.c	2013-10-17 14:05:11.424077842 -0400
+@@ -66,6 +66,7 @@
+ #include <stdlib.h>
+ #include <stdarg.h>
+ #include <assert.h>
++#include <stdbool.h>
+ #include "export.h"
+ #if HAVE_LIBCURL && !HAVE_FOPENCOOKIE
+ # include "fopencookie.e"	/* Use our own fopencookie() */
+@@ -505,7 +506,7 @@
+ 			const conststring path, Dictionary request,
+ 			Dictionary response, int maxredirs, int *status)
+ {
+-  Boolean delete_response = !response;
++  bool delete_response = !response;
+   conststring h, v;
+   char buf[BUFLEN];
+   int fd, n, i;