diff options
author | figsoda <figsoda@pm.me> | 2022-09-25 20:59:19 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2022-09-25 20:59:19 -0400 |
commit | f6e3a8e51241cea5cf994a6c9644589c47ba3c26 (patch) | |
tree | 9b971712aaf68babc96212b683cea512b7fd1cf6 /pkgs/tools/text/scraper | |
parent | ab7290449498f45b7cef6f134f378209f27ac0f9 (diff) |
scraper: init at 0.13.0
Diffstat (limited to 'pkgs/tools/text/scraper')
-rw-r--r-- | pkgs/tools/text/scraper/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/text/scraper/default.nix b/pkgs/tools/text/scraper/default.nix new file mode 100644 index 0000000000000..4118387a34a54 --- /dev/null +++ b/pkgs/tools/text/scraper/default.nix @@ -0,0 +1,26 @@ +{ lib, rustPlatform, fetchCrate, installShellFiles }: + +rustPlatform.buildRustPackage rec { + pname = "scraper"; + version = "0.13.0"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-5fFO51I6DqH1BBELt9FW2BCwYcsXVXaQLgocMn446Bs="; + }; + + cargoSha256 = "sha256-Y4m7C7v4ekJfb3BoWwDF+X8uuRH9muaTwPECgu4WaMQ="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installManPage scraper.1 + ''; + + meta = with lib; { + description = "A tool to query HTML files with CSS selectors"; + homepage = "https://github.com/causal-agent/scraper"; + license = licenses.isc; + maintainers = with maintainers; [ figsoda ]; + }; +} |