about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/tidyp
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/tidyp')
-rw-r--r--nixpkgs/pkgs/development/libraries/tidyp/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/tidyp/default.nix b/nixpkgs/pkgs/development/libraries/tidyp/default.nix
new file mode 100644
index 000000000000..aa54616cf42a
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/tidyp/default.nix
@@ -0,0 +1,24 @@
+{ lib, stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  pname = "tidyp";
+  version = "1.04";
+
+  src = fetchurl {
+    # downloads from a legacy GitHub download page from ~11 years ago
+    # project does not work with autoconf anymore and the configure script cannot be generated from the source download
+    url = "https://github.com/downloads/petdance/tidyp/${pname}-${version}.tar.gz";
+    sha256 = "0f5ky0ih4vap9c6j312jn73vn8m2bj69pl2yd3a5nmv35k9zmc10";
+  };
+
+  hardeningDisable = [ "format" ];
+
+  meta = with lib; {
+    description = "A program that can validate your HTML, as well as modify it to be more clean and standard";
+    mainProgram = "tidyp";
+    homepage = "http://tidyp.com/";
+    platforms = platforms.all;
+    maintainers = with maintainers; [ pSub ];
+    license = licenses.bsd3;
+  };
+}