2024-06-05 15:53:02 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, autoreconfHook, libiconv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "html2text";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.2.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "grobian";
|
|
|
|
repo = "html2text";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-7Ch51nJ5BeRqs4PEIPnjCGk+Nm2ydgJQCtkcpihXun8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Convert HTML to plain text";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "html2text";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://gitlab.com/grobian/html2text";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.eikek ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|