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";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.20.0";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-ouyhdT6XTuWYBxi8HV0dWt/0dHml8YXjf2kzd90Eax0=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-2R8dy9WnEPffkoJfQD8uFL0Ot3D2yibPxIjqRJ+6rMI=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage scraper.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to query HTML files with CSS selectors";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "scraper";
|
2022-09-30 11:47:45 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|