44 lines
971 B
Nix
44 lines
971 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "subxt";
|
|
version = "0.50.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "paritytech";
|
|
repo = "subxt";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-nMal78+TYZ1f9X/YZhsqOsEIrjxhi9fEcevnQW8u97o=";
|
|
};
|
|
|
|
cargoHash = "sha256-sqspcTwODoRzaaUSXT+2yPUTzUqcW1gNu0c1Lv9D1u0=";
|
|
|
|
# Only build the command line client
|
|
cargoBuildFlags = [
|
|
"--bin"
|
|
"subxt"
|
|
];
|
|
|
|
# Requires a running substrate node
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/paritytech/subxt";
|
|
description = "Subxt is a CLI tool for interacting with chains in the Polkadot network";
|
|
changelog = "https://github.com/paritytech/subxt/releases/tag/${finalAttrs.src.tag}";
|
|
mainProgram = "subxt";
|
|
license = with lib.licenses; [
|
|
gpl3Plus
|
|
asl20
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
FlorianFranzen
|
|
kilyanni
|
|
];
|
|
};
|
|
})
|