diff --git a/pkgs/tools/text/scraper/default.nix b/pkgs/tools/text/scraper/default.nix new file mode 100644 index 000000000000..4118387a34a5 --- /dev/null +++ b/pkgs/tools/text/scraper/default.nix @@ -0,0 +1,26 @@ +{ lib, rustPlatform, fetchCrate, installShellFiles }: + +rustPlatform.buildRustPackage rec { + pname = "scraper"; + version = "0.13.0"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-5fFO51I6DqH1BBELt9FW2BCwYcsXVXaQLgocMn446Bs="; + }; + + cargoSha256 = "sha256-Y4m7C7v4ekJfb3BoWwDF+X8uuRH9muaTwPECgu4WaMQ="; + + 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"; + license = licenses.isc; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a47449477019..eb493671cbad 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10872,6 +10872,8 @@ with pkgs; scfbuild = python3.pkgs.callPackage ../tools/misc/scfbuild { }; + scraper = callPackage ../tools/text/scraper { }; + scriptaculous = callPackage ../development/libraries/scriptaculous { }; scrot = callPackage ../tools/graphics/scrot { };