2023-04-04 21:58:51 +01:00
|
|
|
{ lib, rustPlatform, fetchCrate, installShellFiles }:
|
2022-09-26 01:59:19 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "scraper";
|
2024-02-29 22:57:57 +00:00
|
|
|
version = "0.19.0";
|
2022-09-26 01:59:19 +01:00
|
|
|
|
2023-04-04 21:58:51 +01:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-02-29 22:57:57 +00:00
|
|
|
hash = "sha256-HfZ8zyjghTXIyIYS+MaGF5OdMLJv6NIjQswdn/tvQbU=";
|
2022-09-26 01:59:19 +01:00
|
|
|
};
|
|
|
|
|
2024-02-29 22:57:57 +00:00
|
|
|
cargoHash = "sha256-py8VVciNJ36/aSTlTH+Bx36yrh/8AuzB9XNNv/PrFak=";
|
2022-09-26 01:59:19 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage scraper.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool to query HTML files with CSS selectors";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "scraper";
|
2022-09-26 01:59:19 +01:00
|
|
|
homepage = "https://github.com/causal-agent/scraper";
|
2023-02-28 20:45:20 +00:00
|
|
|
changelog = "https://github.com/causal-agent/scraper/releases/tag/v${version}";
|
2022-09-26 01:59:19 +01:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|