Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 cmake, 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "subxt"; 10 version = "0.43.0"; 11 12 src = fetchFromGitHub { 13 owner = "paritytech"; 14 repo = "subxt"; 15 rev = "v${version}"; 16 hash = "sha256-BV/zP0L0gDmLSuzkp4OkOPfgldXBUiaHL4rciM7lrno="; 17 }; 18 19 cargoHash = "sha256-7kmxnlhgNj0hY9FwVrzmdHw73Jf/pSeTHi6sqDg9X24="; 20 21 # Only build the command line client 22 cargoBuildFlags = [ 23 "--bin" 24 "subxt" 25 ]; 26 27 # Needed by wabt-sys 28 nativeBuildInputs = [ cmake ]; 29 30 # Requires a running substrate node 31 doCheck = false; 32 33 meta = with lib; { 34 homepage = "https://github.com/paritytech/subxt"; 35 description = "Submit transactions to a substrate node via RPC"; 36 mainProgram = "subxt"; 37 license = with licenses; [ 38 gpl3Plus 39 asl20 40 ]; 41 maintainers = [ maintainers.FlorianFranzen ]; 42 }; 43}