depot/third_party/nixpkgs/pkgs/tools/text/html2text/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

26 lines
684 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.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 ];
};
}