depot/third_party/nixpkgs/pkgs/tools/text/scraper/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

28 lines
767 B
Nix

{ lib, rustPlatform, fetchCrate, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "scraper";
version = "0.19.1";
src = fetchCrate {
inherit pname version;
hash = "sha256-RxNnKejGd5Jr7ZOXnYGHbV/0mS2e4zKzSpTbsyOPXqw=";
};
cargoHash = "sha256-ld+1O+oYGm/R+bCK/pEc/pDl/ev1zEp8HgSOkilgWgk=";
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 ];
};
}