Also remove patch which has been applied upstream: https://gitlab.com/grobian/html2text/-/commit/1c536b3c74a6dfbb7a951946f554898db8a03e04
39 lines
782 B
Nix
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 ];
|
|
};
|
|
})
|