nixpkgs/pkgs/tools/text/scraper/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
740 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchCrate, installShellFiles }:
2022-09-26 02:59:19 +02:00
rustPlatform.buildRustPackage rec {
pname = "scraper";
version = "0.16.0";
2022-09-26 02:59:19 +02:00
src = fetchCrate {
inherit pname version;
hash = "sha256-3FxEfrScOetB1raiT9xjq9G2xLrLZqVlkqbVAFCIhZ0=";
2022-09-26 02:59:19 +02:00
};
cargoHash = "sha256-Pf8+vvOvOHpuJ2v7iwdVzHwneqvhk2E4nbGO4TL/FAM=";
2022-09-26 02:59:19 +02:00
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}";
2022-09-26 02:59:19 +02:00
license = licenses.isc;
maintainers = with maintainers; [ figsoda ];
};
}