2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2014-11-06 21:37:53 +00:00
|
|
|
|
2021-08-02 09:12:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "html2text";
|
|
|
|
version = "1.3.2a";
|
2014-11-06 21:37:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-02 09:12:13 +00:00
|
|
|
url = "http://www.mbayer.de/html2text/downloads/html2text-${version}.tar.gz";
|
2014-11-06 21:37:53 +00:00
|
|
|
sha256 = "000b39d5d910b867ff7e087177b470a1e26e2819920dcffd5991c33f6d480392";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
2017-09-11 21:40:46 +00:00
|
|
|
substituteInPlace configure \
|
|
|
|
--replace /bin/echo echo \
|
|
|
|
--replace CXX=unknown ':'
|
2014-11-06 21:37:53 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# 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 = {
|
2015-04-30 15:05:14 +00:00
|
|
|
description = "Convert HTML to plain text";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.mbayer.de/html2text/";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.eikek ];
|
2014-11-06 21:37:53 +00:00
|
|
|
};
|
|
|
|
}
|