nixpkgs/pkgs/tools/text/html2text/default.nix

31 lines
774 B
Nix
Raw Normal View History

2014-11-07 00:37:53 +03:00
{ 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 = "Convert HTML to plain text";
2014-11-07 00:37:53 +03:00
homepage = http://www.mbayer.de/html2text/;
license = stdenv.lib.licenses.gpl2Plus;
2015-11-19 10:47:46 +03:00
platforms = stdenv.lib.platforms.unix;
2014-11-07 00:37:53 +03:00
maintainers = [ stdenv.lib.maintainers.eikek ];
};
}