summary refs log tree commit diff
diff options
context:
space:
mode:
authorMax Niederman <max@maxniederman.com>2021-12-19 18:04:22 -0800
committerMax Niederman <max@maxniederman.com>2021-12-19 18:04:22 -0800
commit6245018b19603e9c1819ed50b9d9d4090aab4ba0 (patch)
tree145df55b7428522f53c24b5dc884453d80c462d2
parentf9c6fd3779468cd31ad1a696d4f9dda2630e5ee9 (diff)
downloadnixpkgs-6245018b19603e9c1819ed50b9d9d4090aab4ba0.tar
nixpkgs-6245018b19603e9c1819ed50b9d9d4090aab4ba0.tar.gz
nixpkgs-6245018b19603e9c1819ed50b9d9d4090aab4ba0.tar.bz2
nixpkgs-6245018b19603e9c1819ed50b9d9d4090aab4ba0.tar.lz
nixpkgs-6245018b19603e9c1819ed50b9d9d4090aab4ba0.tar.xz
nixpkgs-6245018b19603e9c1819ed50b9d9d4090aab4ba0.tar.zst
nixpkgs-6245018b19603e9c1819ed50b9d9d4090aab4ba0.zip
tokio-console: init at 0.1.0
-rw-r--r--pkgs/development/tools/tokio-console/default.nix29
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/tools/tokio-console/default.nix b/pkgs/development/tools/tokio-console/default.nix
new file mode 100644
index 00000000000..f04de27f1c2
--- /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 4bd1380e027..40e7c4f549d 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 {