nixpkgs/pkgs/tools/text/html2text/default.nix
Jonah Langlieb 5943b6d374 html2text: 1.3.2a -> 2.2.3
https://github.com/grobian/html2text/releases/tag/v2.2.3

As noted in old homepage https://www.mbayer.de/html2text/
> html2text is now maintained by Fabian Groffen.

Which points to github https://github.com/grobian/html2text  where it says
> the official home of html2text is at https://gitlab.com/grobian/html2text.
2024-05-29 13:39:58 -04:00

27 lines
671 B
Nix

{ lib, stdenv, fetchFromGitLab, autoreconfHook, libiconv }:
stdenv.mkDerivation rec {
pname = "html2text";
version = "2.2.3";
src = fetchFromGitLab {
owner = "grobian";
repo = "html2text";
rev = "v${version}";
hash = "sha256-7Ch51nJ5BeRqs4PEIPnjCGk+Nm2ydgJQCtkcpihXun8=";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = lib.optional stdenv.isDarwin libiconv;
meta = {
description = "Convert HTML to plain text";
mainProgram = "html2text";
homepage = "https://gitlab.com/grobian/html2text";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.eikek ];
};
}