dotnet: improve language coverage of passthru.tests for dotnet sdks (#370789)
[NixPkgs.git] / pkgs / by-name / pr / probe-rs-tools / package.nix
blob40cd642baf2a8ad4e4f4612f5dbb6f0d4f24b035
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   cmake,
6   gitMinimal,
7   pkg-config,
8   libusb1,
9   openssl,
12 rustPlatform.buildRustPackage rec {
13   pname = "probe-rs-tools";
14   version = "0.25.0";
16   src = fetchFromGitHub {
17     owner = "probe-rs";
18     repo = "probe-rs";
19     rev = "v${version}";
20     hash = "sha256-skTM2+7ra8rfRmcxYgE0+mgzGPUYf5JNChC28XM0EMc=";
21   };
23   cargoHash = "sha256-O7F0mx/gfIQUlt+oDsT/DZrHPSQLpL/Aytae24ROUF0=";
25   buildAndTestSubdir = pname;
27   nativeBuildInputs = [
28     # required by libz-sys, no option for dynamic linking
29     # https://github.com/rust-lang/libz-sys/issues/158
30     cmake
31     # build.rs fails without git
32     # https://github.com/probe-rs/probe-rs/pull/2492
33     gitMinimal
34     pkg-config
35   ];
37   buildInputs = [
38     libusb1
39     openssl
40   ];
42   checkFlags = [
43     # require a physical probe
44     "--skip=cmd::dap_server::server::debugger::test::attach_request"
45     "--skip=cmd::dap_server::server::debugger::test::attach_with_flashing"
46     "--skip=cmd::dap_server::server::debugger::test::launch_and_threads"
47     "--skip=cmd::dap_server::server::debugger::test::launch_with_config_error"
48     "--skip=cmd::dap_server::server::debugger::test::test_initalize_request"
49     "--skip=cmd::dap_server::server::debugger::test::test_launch_and_terminate"
50     "--skip=cmd::dap_server::server::debugger::test::test_launch_no_probes"
51     "--skip=cmd::dap_server::server::debugger::test::wrong_request_after_init"
52     # compiles an image for an embedded target which we do not have a toolchain for
53     "--skip=util::cargo::test::get_binary_artifact_with_cargo_config"
54     "--skip=util::cargo::test::get_binary_artifact_with_cargo_config_toml"
55     # requires other crates in the workspace
56     "--skip=util::cargo::test::get_binary_artifact"
57     "--skip=util::cargo::test::library_with_example_specified"
58     "--skip=util::cargo::test::multiple_binaries_in_crate_select_binary"
59     "--skip=util::cargo::test::workspace_binary_package"
60     "--skip=util::cargo::test::workspace_root"
61   ];
63   meta = with lib; {
64     description = "CLI tool for on-chip debugging and flashing of ARM chips";
65     homepage = "https://probe.rs/";
66     changelog = "https://github.com/probe-rs/probe-rs/blob/v${version}/CHANGELOG.md";
67     license = with licenses; [
68       asl20 # or
69       mit
70     ];
71     maintainers = with maintainers; [
72       xgroleau
73       newam
74     ];
75   };