From 4d1406ada35ed8bd62c266488e9ab2a8f4c09bf8 Mon Sep 17 00:00:00 2001 From: David Wolff Date: Mon, 20 Apr 2026 16:58:25 +0200 Subject: [PATCH] stylance-cli: 0.7.4 -> 0.8.0 Changing the source from crates.io to GitHub because the crates.io source does not include some files necessary for tests to pass. --- pkgs/by-name/st/stylance-cli/package.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/st/stylance-cli/package.nix b/pkgs/by-name/st/stylance-cli/package.nix index a4e932c99f06..36120c3a0a75 100644 --- a/pkgs/by-name/st/stylance-cli/package.nix +++ b/pkgs/by-name/st/stylance-cli/package.nix @@ -1,20 +1,22 @@ { lib, rustPlatform, - fetchCrate, + fetchFromGitHub, versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "stylance-cli"; - version = "0.7.4"; + version = "0.8.0"; - src = fetchCrate { - inherit (finalAttrs) pname version; - hash = "sha256-lGgKmNqZ0nflVAM3GMDwGgxnXyLCqVz1bTUsvabXmj8="; + src = fetchFromGitHub { + owner = "basro"; + repo = "stylance-rs"; + tag = "v${finalAttrs.version}"; + hash = "sha256-YMC7pldkabU669CKeXX5QQOcN974/cZ42nTPphZPq5U="; }; - cargoHash = "sha256-HWZQNEKTyNnmA1twN5cfo5RY2tOeCnL6zEp+M4F+Tqg="; + cargoHash = "sha256-hn1nEnihgWtj1JaRcUZTm6lrThnugUMs6mAs0lsWpbU="; nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true;