depot/third_party/nixpkgs/pkgs/tools/text/scraper/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

28 lines
767 B
Nix

{ lib, rustPlatform, fetchCrate, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "scraper";
version = "0.20.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-ouyhdT6XTuWYBxi8HV0dWt/0dHml8YXjf2kzd90Eax0=";
};
cargoHash = "sha256-2R8dy9WnEPffkoJfQD8uFL0Ot3D2yibPxIjqRJ+6rMI=";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage scraper.1
'';
meta = with lib; {
description = "Tool to query HTML files with CSS selectors";
mainProgram = "scraper";
homepage = "https://github.com/causal-agent/scraper";
changelog = "https://github.com/causal-agent/scraper/releases/tag/v${version}";
license = licenses.isc;
maintainers = with maintainers; [ figsoda ];
};
}