From bb7879af9299476d4b10564ef8d781a691f65f00 Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 28 Feb 2023 15:45:20 -0500 Subject: [PATCH] scraper: 0.14.0 -> 0.15.0 Diff: https://github.com/causal-agent/scraper/compare/v0.14.0...v0.15.0 Changelog: https://github.com/causal-agent/scraper/releases/tag/v0.15.0 --- pkgs/tools/text/scraper/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/text/scraper/default.nix b/pkgs/tools/text/scraper/default.nix index ba5c6507fa7f..e1ee0ae2ab57 100644 --- a/pkgs/tools/text/scraper/default.nix +++ b/pkgs/tools/text/scraper/default.nix @@ -1,15 +1,17 @@ -{ lib, rustPlatform, fetchCrate, installShellFiles }: +{ lib, rustPlatform, fetchFromGitHub, installShellFiles }: rustPlatform.buildRustPackage rec { pname = "scraper"; - version = "0.14.0"; + version = "0.15.0"; - src = fetchCrate { - inherit pname version; - sha256 = "sha256-ucArD3xElLpOukNYHiErCTKDSlW2aDn00D3gr5L8Sm0="; + src = fetchFromGitHub { + owner = "causal-agent"; + repo = "scraper"; + rev = "v${version}"; + hash = "sha256-K0MeZeS60gxo0/kBCaffNVQrR5S1HDoq77hnC//LMQg="; }; - cargoSha256 = "sha256-62rJWpDi2vPHFnJnIrisyj0sEZTzRra+zoMb06zmxdE="; + cargoHash = "sha256-2IvfJaYyX7ZA1y3TETydb7wXRER4CfH69xEvnxKCFTc="; nativeBuildInputs = [ installShellFiles ]; @@ -20,6 +22,7 @@ rustPlatform.buildRustPackage rec { 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 ]; };