From 7e4ca1cc75efac1656f790829145554c142132c9 Mon Sep 17 00:00:00 2001 From: Charles Strahan Date: Sun, 21 Dec 2014 23:31:06 -0500 Subject: [PATCH] libtidy: new package A library and CLI to validate, correct, and pretty-print HTML files. --- .../development/libraries/libtidy/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/libraries/libtidy/default.nix diff --git a/pkgs/development/libraries/libtidy/default.nix b/pkgs/development/libraries/libtidy/default.nix new file mode 100644 index 000000000000..412f34008f11 --- /dev/null +++ b/pkgs/development/libraries/libtidy/default.nix @@ -0,0 +1,28 @@ +{ stdenv, lib, fetchcvs, cmake, libtool, automake, autoconf }: + +stdenv.mkDerivation rec { + name = "libtidy-${version}"; + + version = "1.46"; + + src = fetchcvs { + cvsRoot = ":pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy"; + module = "tidy"; + date = "2009-03-25"; + sha256 = "0bnxn1qgjx1pfyn2q4y24yj1gwqq5bxwf5ksjljqzqzrmjv3q46x"; + }; + + preConfigure = '' + source build/gnuauto/setup.sh + ''; + + buildInputs = [ libtool automake autoconf ]; + + meta = with lib; { + description = "Validate, correct, and pretty-print HTML files"; + homepage = http://tidy.sourceforge.net; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ cstrahan ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1d60754f0880..b89dd6295722 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1644,6 +1644,8 @@ let liboauth = callPackage ../development/libraries/liboauth { }; + libtidy = callPackage ../development/libraries/libtidy { }; + libtirpc = callPackage ../development/libraries/ti-rpc { }; libshout = callPackage ../development/libraries/libshout { };