nixpkgs/pkgs/by-name/re/readability-extractor/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
776 B
Nix
Raw Normal View History

2023-12-29 04:42:36 +00:00
{ lib
, stdenv
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
2023-12-29 04:42:36 +00:00
pname = "readability-extractor";
version = "0.0.11";
2023-12-29 04:42:36 +00:00
src = fetchFromGitHub {
owner = "ArchiveBox";
repo = "readability-extractor";
rev = "refs/tags/v${version}";
hash = "sha256-QzxwPonPrCDdVYHZ9rEfw8ok56lVZE82VykrfkdFh5I=";
2023-12-29 04:42:36 +00:00
};
dontNpmBuild = true;
npmDepsHash = "sha256-F5lOGkhFlFVB8zTxrebWsPWRNfHgZ4Y2DqKED/z5riw=";
2023-12-29 04:42:36 +00:00
meta = with lib; {
homepage = "https://github.com/ArchiveBox/readability-extractor";
description = "Javascript wrapper around Mozilla Readability for ArchiveBox to call as a oneshot CLI to extract article text";
license = licenses.mit;
maintainers = with maintainers; [ viraptor ];
mainProgram = "readability-extractor";
};
}