From fc43a7fa4d3b6d1d19ab681cebcb4793a456cb09 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Mon, 12 Apr 2021 21:40:33 -0700 Subject: [PATCH] probe-run: init at 0.2.1 Signed-off-by: Ana Hobden --- .../tools/rust/probe-run/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/tools/rust/probe-run/default.nix diff --git a/pkgs/development/tools/rust/probe-run/default.nix b/pkgs/development/tools/rust/probe-run/default.nix new file mode 100644 index 00000000000..c4dc0c34107 --- /dev/null +++ b/pkgs/development/tools/rust/probe-run/default.nix @@ -0,0 +1,25 @@ +{ lib, rustPlatform, fetchFromGitHub, pkg-config, libusb1 }: + +rustPlatform.buildRustPackage rec { + pname = "probe-run"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "knurling-rs"; + repo = pname; + rev = "v${version}"; + sha256 = "QEUsigoSqVczrsSSDnOhTXm94JTXHgxeNY0tGsOaRyg="; + }; + + cargoSha256 = "Fr5XWIUHXyfesouHi0Uryf/ZgB/rDDJ4G1BYGHw0QeQ="; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libusb1 ]; + + meta = with lib; { + description = "Run embedded programs just like native ones."; + homepage = "https://github.com/knurling-rs/probe-run"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = with maintainers; [ hoverbear ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 613b9ffc57e..907c5d5859b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -257,6 +257,8 @@ in html5validator = python3Packages.callPackage ../applications/misc/html5validator { }; + probe-run = callPackage ../development/tools/rust/probe-run {}; + proto-contrib = callPackage ../development/tools/proto-contrib {}; protoc-gen-doc = callPackage ../development/tools/protoc-gen-doc {};