Unverified Commit e206f4db authored by nat's avatar nat
Browse files

defuddle-cli: 0.6.4 -> 0.17.0

parent 6d585296
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
{
  buildNpmPackage,
  fetchFromGitHub,
  gitUpdater,
  lib,
  nix-update-script,
}:

buildNpmPackage rec {
  pname = "defuddle-cli";
  version = "0.6.4";
  version = "0.17.0";

  src = fetchFromGitHub {
    owner = "kepano";
    repo = "defuddle-cli";
    repo = "defuddle";
    tag = version;
    hash = "sha256-28XmpFKzBKNhRkPOGaacJVw8hjQUZq2nwuR0vNo8aW0=";
    hash = "sha256-w1V2xdaE8Htl6NeDyfKLFHOt3UEUuI4eBPW433qD1WI=";
  };

  npmDepsHash = "sha256-rRo+ty/E09OS+cWDnKQkROEdDc0hiB5g1h/+NbJe+/M=";
  npmDepsHash = "sha256-D+Gn9Dcc+YNeRonnKjEcp3BzpxIdwy7J4lJvxefJSvs=";

  passthru.updateScript = gitUpdater { };
  # 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 { };

  meta = {
    description = "Command line utility to extract clean html, markdown and metadata from web pages";
    homepage = "https://github.com/kepano/defuddle-cli";
    homepage = "https://github.com/kepano/defuddle";
    license = lib.licenses.mit;
    mainProgram = "defuddle";
    maintainers = with lib.maintainers; [ surfaceflinger ];