mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
29 lines
767 B
Nix
29 lines
767 B
Nix
{ lib, rustPlatform, fetchCrate, installShellFiles }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "scraper";
|
|
version = "0.19.0";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-HfZ8zyjghTXIyIYS+MaGF5OdMLJv6NIjQswdn/tvQbU=";
|
|
};
|
|
|
|
cargoHash = "sha256-py8VVciNJ36/aSTlTH+Bx36yrh/8AuzB9XNNv/PrFak=";
|
|
|
|
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 ];
|
|
};
|
|
}
|