mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
Add HTML Tidy, an HTML validator.
svn path=/nixpkgs/trunk/; revision=16176
This commit is contained in:
parent
88b53a7d73
commit
9f3511c882
41
pkgs/tools/text/html-tidy/default.nix
Normal file
41
pkgs/tools/text/html-tidy/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -1407,6 +1407,10 @@ let
|
|||
inherit fetchurl stdenv ncurses libjpeg e2fsprogs zlib openssl;
|
||||
};
|
||||
|
||||
htmlTidy = import ../tools/text/html-tidy {
|
||||
inherit fetchcvs stdenv autoconf automake libtool;
|
||||
};
|
||||
|
||||
tightvnc = import ../tools/admin/tightvnc {
|
||||
inherit fetchurl stdenv x11 zlib libjpeg perl;
|
||||
inherit (xlibs) imake gccmakedep libXmu libXaw libXpm libXp xauth;
|
||||
|
|
Loading…
Reference in a new issue