From 63d54a85c19b55df8a05c76210bd862b338af62b Mon Sep 17 00:00:00 2001 From: Rishi Desai Date: Sun, 25 Sep 2022 00:06:04 -0700 Subject: [PATCH] humility: init at unstable-2022-09-15 A debugger for the Hubris RTOS --- .../tools/rust/humility/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/tools/rust/humility/default.nix diff --git a/pkgs/development/tools/rust/humility/default.nix b/pkgs/development/tools/rust/humility/default.nix new file mode 100644 index 000000000000..92e3e78077c1 --- /dev/null +++ b/pkgs/development/tools/rust/humility/default.nix @@ -0,0 +1,32 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, libusb +, libftdi +, cargo-readme +, pkg-config +}: + +rustPlatform.buildRustPackage rec { + pname = "humility"; + version = "unstable-2022-09-15"; + + nativeBuildInputs = [ pkg-config cargo-readme ]; + buildInputs = [ libusb libftdi ]; + + src = fetchFromGitHub { + owner = "oxidecomputer"; + repo = pname; + rev = "d336c21c7b6da7f8203a9331c7657581de2bc6ad"; + sha256 = "sha256-yW7QcxTWbL2YsV2bvfhbqQ2nawlPQbYxBfIGCWo28GY="; + }; + + cargoSha256 = "sha256-UhO8VO3OCfYc8Xq/P+l9f5ZrhOD/TBzSClAeAXLJLlc="; + + meta = with lib; { + description = "Debugger for Hubris"; + homepage = "https://github.com/oxidecomputer/humility"; + license = with licenses; [ mpl20 ]; + maintainers = with maintainers; [ therishidesai ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d3d5098ba676..5c6756888a3a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24438,6 +24438,8 @@ with pkgs; htop-vim = callPackage ../tools/system/htop/htop-vim.nix { }; + humility = callPackage ../development/tools/rust/humility {}; + btop = callPackage ../tools/system/btop { stdenv = gcc11Stdenv; };