about summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-07-05 14:07:39 +0000
committerLudovic Courtès <ludo@gnu.org>2009-07-05 14:07:39 +0000
commit9f3511c882195818d7e297e37c9aa4dfc0726c0d (patch)
tree34aaa7bdeb7ca0667435c39334cab9c2538da648 /pkgs/tools/text
parent88b53a7d732044a7ec6d8a61f4e0c27a4d132444 (diff)
downloadnixlib-9f3511c882195818d7e297e37c9aa4dfc0726c0d.tar
nixlib-9f3511c882195818d7e297e37c9aa4dfc0726c0d.tar.gz
nixlib-9f3511c882195818d7e297e37c9aa4dfc0726c0d.tar.bz2
nixlib-9f3511c882195818d7e297e37c9aa4dfc0726c0d.tar.lz
nixlib-9f3511c882195818d7e297e37c9aa4dfc0726c0d.tar.xz
nixlib-9f3511c882195818d7e297e37c9aa4dfc0726c0d.tar.zst
nixlib-9f3511c882195818d7e297e37c9aa4dfc0726c0d.zip
Add HTML Tidy, an HTML validator.
svn path=/nixpkgs/trunk/; revision=16176
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/html-tidy/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/text/html-tidy/default.nix b/pkgs/tools/text/html-tidy/default.nix
new file mode 100644
index 000000000000..25732afa8b12
--- /dev/null
+++ b/pkgs/tools/text/html-tidy/default.nix
@@ -0,0 +1,41 @@
+{ fetchcvs, stdenv, autoconf, automake, libtool }:
+
+let date = "2009-07-04"; in
+  stdenv.mkDerivation rec {
+    name = "html-tidy-${date}";
+
+    # According to http://tidy.sourceforge.net/, there are no new
+    # release tarballs, so one has to either get the code from CVS or
+    # use a decade-old tarball.
+
+    src = fetchcvs {
+      inherit date;
+      cvsRoot = ":pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy";
+      module = "tidy";
+      sha256 = "d2e68b4335ebfde65ef66d5684f7693675c98bdd50b7a63c0b04f61db673aa6d";
+    };
+
+    buildInputs = [ autoconf automake libtool ];
+
+    preConfigure = ''
+      cp -rv build/gnuauto/* .
+      AUTOMAKE="automake --foreign" autoreconf -vfi
+    '';
+
+    doCheck = true;
+
+    meta = {
+      description = "HTML Tidy, an HTML validator and `tidier'";
+
+      longDescription = ''
+        HTML Tidy is a command-line tool and C library that can be
+        used to validate and fix HTML data.
+      '';
+
+      license = "MIT";
+
+      homepage = http://tidy.sourceforge.net/;
+
+      maintainers = [ stdenv.lib.maintainers.ludo ];
+    };
+  }