ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / sc / scraper / package.nix
blobf8fc949da05a8db7467171fe4c03aa3604f9dde4
1 { lib, rustPlatform, fetchCrate, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
4   pname = "scraper";
5   version = "0.21.0";
7   src = fetchCrate {
8     inherit pname version;
9     hash = "sha256-S9bVsLDAX7UJ9FV4ZuI1G1D2fSZSZsevtftr7y+HyI8=";
10   };
12   cargoHash = "sha256-K4ZmarOniI7OgzjkaP66Py5ei+NKeJEOuziS//NXffw=";
14   nativeBuildInputs = [ installShellFiles ];
16   postInstall = ''
17     installManPage scraper.1
18   '';
20   meta = with lib; {
21     description = "Tool to query HTML files with CSS selectors";
22     mainProgram = "scraper";
23     homepage = "https://github.com/causal-agent/scraper";
24     changelog = "https://github.com/causal-agent/scraper/releases/tag/v${version}";
25     license = licenses.isc;
26     maintainers = with maintainers; [ figsoda ];
27   };