01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
36 lines
839 B
Nix
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 ];
|
|
};
|
|
}
|