1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5 installShellFiles,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "scraper";
10 version = "0.23.1";
11
12 src = fetchCrate {
13 inherit pname version;
14 hash = "sha256-s38EnVooSCL6TNjU90x2Q7lXDyOf9sWjOpxAxangyAU=";
15 };
16
17 cargoHash = "sha256-cijkLybvjwdz3k2CG0hYwSTisbJUpyI7QUG0l8xLfKQ=";
18
19 nativeBuildInputs = [ installShellFiles ];
20
21 postInstall = ''
22 installManPage scraper.1
23 '';
24
25 meta = {
26 description = "Tool to query HTML files with CSS selectors";
27 mainProgram = "scraper";
28 homepage = "https://github.com/causal-agent/scraper";
29 changelog = "https://github.com/causal-agent/scraper/releases/tag/v${version}";
30 license = lib.licenses.isc;
31 maintainers = with lib.maintainers; [ figsoda ];
32 };
33}