at 22.05-pre 33 lines 850 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "html2text"; 5 version = "1.3.2a"; 6 7 src = fetchurl { 8 url = "http://www.mbayer.de/html2text/downloads/html2text-${version}.tar.gz"; 9 sha256 = "000b39d5d910b867ff7e087177b470a1e26e2819920dcffd5991c33f6d480392"; 10 }; 11 12 preConfigure = '' 13 substituteInPlace configure \ 14 --replace /bin/echo echo \ 15 --replace CXX=unknown ':' 16 ''; 17 18 # the --prefix has no effect 19 installPhase = '' 20 mkdir -p $out/bin $out/man/man{1,5} 21 cp html2text $out/bin 22 cp html2text.1.gz $out/man/man1 23 cp html2textrc.5.gz $out/man/man5 24 ''; 25 26 meta = { 27 description = "Convert HTML to plain text"; 28 homepage = "http://www.mbayer.de/html2text/"; 29 license = lib.licenses.gpl2Plus; 30 platforms = lib.platforms.unix; 31 maintainers = [ lib.maintainers.eikek ]; 32 }; 33}