lintspec: 0.7.1 -> 0.9.0

This commit is contained in:
beeb
2025-09-11 15:54:21 +02:00
parent a633874776
commit c97ffa9caf
+14 -4
View File
@@ -1,21 +1,31 @@
{
lib,
fetchFromGitHub,
installShellFiles,
lib,
rustPlatform,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "lintspec";
version = "0.7.1";
version = "0.9.0";
src = fetchFromGitHub {
owner = "beeb";
repo = "lintspec";
tag = "v${version}";
hash = "sha256-TMiUOrDsKXi+d/CbJauo2FT9WEWnztMYqrZZHpS8i7M=";
hash = "sha256-5jNOMAohfzq/S+1LASQh0hvzqdMLQGdPYSb6rcGxmD8=";
};
cargoHash = "sha256-K8zx+dW6RXcbX2ZqNdfnv7WjbvjA8ZdJBitdDOi8hxE=";
cargoHash = "sha256-m9n9r3SJtGx3/MURmZak2XRCLkmQZU06nPMQpROfvVs=";
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd lintspec \
--bash <($out/bin/lintspec completions -s bash) \
--fish <($out/bin/lintspec completions -s fish) \
--zsh <($out/bin/lintspec completions -s zsh)
'';
meta = {
description = "Blazingly fast linter for NatSpec comments in Solidity code";