2023-04-12 12:48:02 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, installShellFiles }:
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "scraper";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.19.1";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-RxNnKejGd5Jr7ZOXnYGHbV/0mS2e4zKzSpTbsyOPXqw=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cargoHash = "sha256-ld+1O+oYGm/R+bCK/pEc/pDl/ev1zEp8HgSOkilgWgk=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage scraper.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to query HTML files with CSS selectors";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "scraper";
|
2022-09-30 11:47:45 +00:00
|
|
|
homepage = "https://github.com/causal-agent/scraper";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/causal-agent/scraper/releases/tag/v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|