Files
2026-04-30 17:22:55 +02:00

39 lines
782 B
Nix

{
lib,
stdenv,
fetchFromGitLab,
autoconf-archive,
autoreconfHook,
bison,
libiconv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "html2text";
version = "2.4.0";
src = fetchFromGitLab {
owner = "grobian";
repo = "html2text";
rev = "v${finalAttrs.version}";
hash = "sha256-C229ogU2YStXWizb51whQXc6oSkVnclnOeJYlIMvHWM=";
};
nativeBuildInputs = [
autoconf-archive
autoreconfHook
bison
];
buildInputs = lib.optional stdenv.hostPlatform.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 ];
};
})