mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-01 13:14:42 +00:00
37 lines
898 B
Nix
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 ];
|
|
};
|
|
}
|