Files
nixpkgs/pkgs/by-name/de/defuddle/package.nix
2026-07-30 13:53:08 +00:00

37 lines
898 B
Nix

{
buildNpmPackage,
fetchFromGitHub,
lib,
nix-update-script,
}:
buildNpmPackage rec {
pname = "defuddle";
version = "0.19.2";
src = fetchFromGitHub {
owner = "kepano";
repo = "defuddle";
tag = version;
hash = "sha256-Cabf8hxlZdKM5A+YCpbZrqv+odxtaWMsVneb+ZlCKEI=";
};
npmDepsHash = "sha256-foGObUvMGqZ2ZDDSqzkxUrFxD4ZXGoHlIAOf8N/5diY=";
# jsdom is both a peerDependency and devDependency; pruning
# devDependencies removes it, but the CLI needs it at runtime.
dontNpmPrune = true;
passthru.updateScript = nix-update-script { };
__structuredAttrs = true;
meta = {
description = "Command line utility to extract clean html, markdown and metadata from web pages";
homepage = "https://github.com/kepano/defuddle";
license = lib.licenses.mit;
mainProgram = "defuddle";
maintainers = with lib.maintainers; [ surfaceflinger ];
};
}