depot/third_party/nixpkgs/pkgs/development/tools/rust/humility/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

36 lines
839 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, libusb1
, libftdi
, cargo-readme
, pkg-config
, AppKit
}:
rustPlatform.buildRustPackage rec {
pname = "humility";
version = "unstable-2022-09-15";
nativeBuildInputs = [ pkg-config cargo-readme ];
buildInputs = [ libusb1 libftdi ] ++ lib.optionals stdenv.isDarwin [
AppKit
];
src = fetchFromGitHub {
owner = "oxidecomputer";
repo = pname;
rev = "d336c21c7b6da7f8203a9331c7657581de2bc6ad";
sha256 = "sha256-yW7QcxTWbL2YsV2bvfhbqQ2nawlPQbYxBfIGCWo28GY=";
};
cargoSha256 = "sha256-IurLI0ZQNpmiYwfcMZuxi7FWtSX+Ts7GYWFwUfD+Ji8=";
meta = with lib; {
description = "Debugger for Hubris";
homepage = "https://github.com/oxidecomputer/humility";
license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ therishidesai ];
};
}