2023-04-12 12:48:02 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, installShellFiles }:
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "scraper";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.18.1";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-fnX2v7VxVFgn9UT1+qWBvN+oDDI2DbK6UFKmby5aB5c=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoHash = "sha256-HeT3U4H/OM/91BdXTvZq+gpmOnt/P4wTlqc2dl4erlQ=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
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";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/causal-agent/scraper/releases/tag/v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|