From 6245018b19603e9c1819ed50b9d9d4090aab4ba0 Mon Sep 17 00:00:00 2001 From: Max Niederman Date: Sun, 19 Dec 2021 18:04:22 -0800 Subject: [PATCH] tokio-console: init at 0.1.0 --- .../tools/tokio-console/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/tools/tokio-console/default.nix diff --git a/pkgs/development/tools/tokio-console/default.nix b/pkgs/development/tools/tokio-console/default.nix new file mode 100644 index 000000000000..f04de27f1c24 --- /dev/null +++ b/pkgs/development/tools/tokio-console/default.nix @@ -0,0 +1,29 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, protobuf +}: + +rustPlatform.buildRustPackage rec { + pname = "tokio-console"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "tokio-rs"; + repo = "console"; + rev = "tokio-console-v${version}"; + sha256 = "sha256-1wxRTdDmgTlGJ3W1txDA/3Rnccs3KBw55vprrGaVnkg="; + }; + + cargoSha256 = "sha256-RScu5V55OowwWHi3MLjW8DPlTMA/IEBYFt4VUDUHPKo="; + + nativeBuildInputs = [ protobuf ]; + + meta = with lib; { + description = "A debugger for asynchronous Rust code"; + homepage = "https://github.com/tokio-rs/console"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ max-niederman ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4bd1380e027d..40e7c4f549d1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10220,6 +10220,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; + tokio-console = callPackage ../development/tools/tokio-console { }; + toml2nix = (callPackage ../tools/toml2nix { }).toml2nix { }; topgrade = callPackage ../tools/misc/topgrade {