Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
984 B
Nix
46 lines
984 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
autoconf-archive,
|
|
autoreconfHook,
|
|
bison,
|
|
gettext,
|
|
libiconv,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "html2text";
|
|
version = "2.3.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "grobian";
|
|
repo = "html2text";
|
|
rev = "v${version}";
|
|
hash = "sha256-e/KWyc7lOdWhtFC7ZAD7sYgCsO3JzGkLUThVI7edqIQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoconf-archive
|
|
autoreconfHook
|
|
bison
|
|
gettext
|
|
];
|
|
|
|
# These changes have all been made in HEAD, across several commits
|
|
# amongst other changes.
|
|
# See https://gitlab.com/grobian/html2text/-/merge_requests/57
|
|
patches = [ ./gettext-0.25.patch ];
|
|
|
|
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 ];
|
|
};
|
|
}
|