depot/third_party/nixpkgs/pkgs/development/tools/rust/probe-run/default.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

45 lines
944 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchCrate
, pkg-config
, DarwinTools
, libusb1
, libiconv
, AppKit
, IOKit
}:
rustPlatform.buildRustPackage rec {
pname = "probe-run";
version = "0.3.7";
src = fetchCrate {
inherit pname version;
hash = "sha256-GLJrM5vIGYH5lNvwmpYKE/ISTRUwikCCj2o5h6Y9kW4=";
};
cargoHash = "sha256-YevCel3HqwslwVmEA1vncsYYPMGQPUnwlkxLNQsnKG0=";
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 ];
};
}