mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 03:10:19 +00:00
subxt: add update script, version check and structuredAttrs
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
@@ -26,6 +28,17 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
# Requires a running substrate node
|
||||
doCheck = false;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
# subxt exposes its version through a subcommand, not a --version flag
|
||||
versionCheckProgramArg = "version";
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/paritytech/subxt";
|
||||
description = "Subxt is a CLI tool for interacting with chains in the Polkadot network";
|
||||
|
||||
Reference in New Issue
Block a user