depot/third_party/nixpkgs/pkgs/development/tools/rust/probe-run/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

45 lines
945 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchCrate
, pkg-config
, DarwinTools
, libusb1
, libiconv
, AppKit
, IOKit
}:
rustPlatform.buildRustPackage rec {
pname = "probe-run";
version = "0.3.10";
src = fetchCrate {
inherit pname version;
hash = "sha256-PIUL7aUIHyHuetkMbJsZ3x1coyzKGwI/AJE/R6uFBM4=";
};
cargoHash = "sha256-7q5M3huI7Qje5E3Rl2i/9I4g90R8vhJD9Hk78biewBE=";
nativeBuildInputs = [
pkg-config
] ++ lib.optionals stdenv.isDarwin [
DarwinTools
];
buildInputs = [
libusb1
] ++ lib.optionals stdenv.isDarwin [
libiconv
AppKit
IOKit
];
meta = with lib; {
description = "Run embedded programs just like native ones";
homepage = "https://github.com/knurling-rs/probe-run";
changelog = "https://github.com/knurling-rs/probe-run/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ hoverbear newam ];
};
}