1{ lib
2, stdenv
3, rustPlatform
4, fetchFromGitHub
5, cmake
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "subxt";
10 version = "0.31.0";
11
12 src = fetchFromGitHub {
13 owner = "paritytech";
14 repo = "subxt";
15 rev = "v${version}";
16 hash = "sha256-eEsb88f16Ug9h7JNkzwSTxJZEV5r4XmmzsTxTQGk+j8=";
17 };
18
19 cargoHash = "sha256-kcs55NgwsqgZXcx+a6g0o9KdUG4tt0ZBv3dU/Pb0NJk=";
20
21 # Only build the command line client
22 cargoBuildFlags = [ "--bin" "subxt" ];
23
24 # Needed by wabt-sys
25 nativeBuildInputs = [ cmake ];
26
27 # Requires a running substrate node
28 doCheck = false;
29
30 meta = with lib; {
31 homepage = "https://github.com/paritytech/subxt";
32 description = "Submit transactions to a substrate node via RPC.";
33 license = with licenses; [ gpl3Plus asl20 ];
34 maintainers = [ maintainers.FlorianFranzen ];
35 };
36}