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