From c96f76a20b1e591d1c8cd261736333cb10cb2017 Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Sun, 2 Jul 2023 14:31:46 +0200 Subject: [PATCH] tokio-console: 0.1.7 -> 0.1.9 --- .../tools/tokio-console/cargo-lock.patch | 13 +++++++++++++ pkgs/development/tools/tokio-console/default.nix | 9 ++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 pkgs/development/tools/tokio-console/cargo-lock.patch diff --git a/pkgs/development/tools/tokio-console/cargo-lock.patch b/pkgs/development/tools/tokio-console/cargo-lock.patch new file mode 100644 index 000000000000..224a4acc082b --- /dev/null +++ b/pkgs/development/tools/tokio-console/cargo-lock.patch @@ -0,0 +1,13 @@ +diff --git a/Cargo.lock b/Cargo.lock +index fcbe50c..27d4c30 100644 +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -1390,7 +1390,7 @@ dependencies = [ + + [[package]] + name = "tokio-console" +-version = "0.1.8" ++version = "0.1.9" + dependencies = [ + "atty", + "clap", diff --git a/pkgs/development/tools/tokio-console/default.nix b/pkgs/development/tools/tokio-console/default.nix index 8c9b2803a0ae..558934fd15ff 100644 --- a/pkgs/development/tools/tokio-console/default.nix +++ b/pkgs/development/tools/tokio-console/default.nix @@ -6,19 +6,21 @@ rustPlatform.buildRustPackage rec { pname = "tokio-console"; - version = "0.1.7"; + version = "0.1.9"; src = fetchFromGitHub { owner = "tokio-rs"; repo = "console"; rev = "tokio-console-v${version}"; - sha256 = "sha256-yTNLKpBkzzN0X73CjN/UXRGjAGOnCCgJa6A6loA6baM="; + hash = "sha256-zISgEhUmAfHErq4AelbnSwtKjtxYH//pbLUAlPKxQYk="; }; - cargoSha256 = "sha256-K/auhqlL/K6RYE0lHyvSUqK1cOwJBBZD3QTUevZzLXQ="; + cargoHash = "sha256-qK8U6BZN7sdBP8CbzsDeewsGulNA/KFVS9vscBxysRg="; nativeBuildInputs = [ protobuf ]; + cargoPatches = [ ./cargo-lock.patch ]; + # uses currently unstable tokio features RUSTFLAGS = "--cfg tokio_unstable"; @@ -32,6 +34,7 @@ rustPlatform.buildRustPackage rec { meta = with lib; { description = "A debugger for asynchronous Rust code"; homepage = "https://github.com/tokio-rs/console"; + mainProgram = "tokio-console"; license = with licenses; [ mit ]; maintainers = with maintainers; [ max-niederman ]; };