about summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-11-08 15:56:32 +0100
committerLuca Bruno <lucabru@src.gnome.org>2014-11-08 15:56:40 +0100
commit83221f3886c8b74f78edbad5a1541de0837a0f24 (patch)
treef9a53d659e562acf0637ffb42f013aebf460a947 /pkgs/tools/text
parent7f3c95e6b7d40df043652b2fca54b0997e7a1937 (diff)
parentaa2fd47e9dee4e36e4bd494601e0ae5d9b40a78f (diff)
downloadnixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar
nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar.gz
nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar.bz2
nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar.lz
nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar.xz
nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar.zst
nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.zip
Merge branch 'master' into staging
Makes the build more useful:
- Disabled hybrid iso, makes installer tests pass again
- Imagemagick fixes to the "Illegal instruction" thing
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/html2text/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/text/html2text/default.nix b/pkgs/tools/text/html2text/default.nix
new file mode 100644
index 000000000000..27de591d8896
--- /dev/null
+++ b/pkgs/tools/text/html2text/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation {
+  name = "html2text-1.3.2a";
+
+  src = fetchurl {
+    url = http://www.mbayer.de/html2text/downloads/html2text-1.3.2a.tar.gz;
+    sha256 = "000b39d5d910b867ff7e087177b470a1e26e2819920dcffd5991c33f6d480392";
+  };
+
+  preConfigure = ''
+    sed -i s,/bin/echo,echo, configure
+  '';
+
+  # the --prefix has no effect
+  installPhase = ''
+    mkdir -p $out/bin $out/man/man{1,5}
+    cp html2text $out/bin
+    cp html2text.1.gz $out/man/man1
+    cp html2textrc.5.gz $out/man/man5
+  '';
+
+  meta = {
+    description = "html2text is a command line utility, written in C++, that converts HTML documents into plain text.";
+    homepage = http://www.mbayer.de/html2text/;
+    license = stdenv.lib.licenses.gpl2Plus;
+    platforms = stdenv.lib.platforms.linux;
+    maintainers = [ stdenv.lib.maintainers.eikek ];
+  };
+}