diff options
author | Doron Behar <doron.behar@gmail.com> | 2023-11-11 17:25:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-11 17:25:11 +0000 |
commit | 7362210ca60f33ccd97b350757bde0b5c7758d21 (patch) | |
tree | a02b2a6209e34cc6221e4fcfddb55978e04dd91e | |
parent | 2384ea5e84a9f8d5a4fa313e13dcea85ecd7cb64 (diff) | |
parent | e913c9e976420c00969cf497d2422c5ececd0488 (diff) |
Merge pull request #231226 from FlorianFranzen/substrate-tools
subxt: init at 0.31.0
-rw-r--r-- | pkgs/development/tools/subxt/default.nix | 36 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/tools/subxt/default.nix b/pkgs/development/tools/subxt/default.nix new file mode 100644 index 0000000000000..fdf103f190e13 --- /dev/null +++ b/pkgs/development/tools/subxt/default.nix @@ -0,0 +1,36 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +, cmake +}: + +rustPlatform.buildRustPackage rec { + pname = "subxt"; + version = "0.31.0"; + + src = fetchFromGitHub { + owner = "paritytech"; + repo = "subxt"; + rev = "v${version}"; + hash = "sha256-eEsb88f16Ug9h7JNkzwSTxJZEV5r4XmmzsTxTQGk+j8="; + }; + + cargoHash = "sha256-kcs55NgwsqgZXcx+a6g0o9KdUG4tt0ZBv3dU/Pb0NJk="; + + # Only build the command line client + cargoBuildFlags = [ "--bin" "subxt" ]; + + # Needed by wabt-sys + nativeBuildInputs = [ cmake ]; + + # Requires a running substrate node + doCheck = false; + + meta = with lib; { + homepage = "https://github.com/paritytech/subxt"; + description = "Submit transactions to a substrate node via RPC."; + license = with licenses; [ gpl3Plus asl20 ]; + maintainers = [ maintainers.FlorianFranzen ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f15c3bf52edf0..42fba003f9e91 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25230,6 +25230,8 @@ with pkgs; subtitleeditor = callPackage ../applications/video/subtitleeditor { }; + subxt = callPackage ../development/tools/subxt { }; + suil = darwin.apple_sdk_11_0.callPackage ../development/libraries/audio/suil { }; sundials = callPackage ../development/libraries/sundials { |