2022-09-30 11:47:45 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, installShellFiles }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "scraper";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.14.0";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-12-28 21:21:41 +00:00
|
|
|
sha256 = "sha256-ucArD3xElLpOukNYHiErCTKDSlW2aDn00D3gr5L8Sm0=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
cargoSha256 = "sha256-62rJWpDi2vPHFnJnIrisyj0sEZTzRra+zoMb06zmxdE=";
|
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";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|