Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
34 lines
774 B
Nix
34 lines
774 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchCrate,
|
|
installShellFiles,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "scraper";
|
|
version = "0.24.0";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-/WdzwqwxTZiWyLV/W0nsMgVJ+o3wJU6u0gOMZva+WSM=";
|
|
};
|
|
|
|
cargoHash = "sha256-0k8tYJbsWRAWn7stsodC8qkzzl3O8AZ1QrQ7i/n2YzY=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installManPage scraper.1
|
|
'';
|
|
|
|
meta = {
|
|
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 = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ figsoda ];
|
|
};
|
|
}
|