mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
118b0bf130
Diff: https://diff.rs/scraper/0.16.0/0.17.1 Changelog: https://github.com/causal-agent/scraper/releases/tag/v0.17.1
28 lines
740 B
Nix
28 lines
740 B
Nix
{ lib, rustPlatform, fetchCrate, installShellFiles }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "scraper";
|
|
version = "0.17.1";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-SVrQi9VxTzUHkdFdieOAIBhKvyrZqi3xKGooHkCEmhQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-/Lut38gFO4XtrBHXr4sfcII+bWgcCDrHf5/PKPrDiDs=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installManPage scraper.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A tool to query HTML files with CSS selectors";
|
|
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 ];
|
|
};
|
|
}
|