From 436c831f9a7fc2bf8195077dbf4540c68fdd0e96 Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Thu, 6 Oct 2022 16:44:13 -0700 Subject: [PATCH 1/2] probe-run: 0.3.4 -> 0.3.5 --- pkgs/development/tools/rust/probe-run/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/rust/probe-run/default.nix b/pkgs/development/tools/rust/probe-run/default.nix index 4135a26d0f12..b6884d06ae26 100644 --- a/pkgs/development/tools/rust/probe-run/default.nix +++ b/pkgs/development/tools/rust/probe-run/default.nix @@ -3,14 +3,14 @@ rustPlatform.buildRustPackage rec { pname = "probe-run"; - version = "0.3.4"; + version = "0.3.5"; src = fetchCrate { inherit pname version; - sha256 = "sha256-xVxigZET2/7xr+bb3r80F3y0yaNV1JeGeJ2EF0GWa1A="; + sha256 = "sha256-C9JxQVsS1Bv9euQ7l+p5aehiGLKdrUMcno9z8UoZKR4="; }; - cargoSha256 = "sha256-MK3F3Kt80Xdbbm68Jv1uh78nAj1LzJ90H54NYdn+Oms="; + cargoSha256 = "sha256-kmdRwAq6EOniGHC7JhB6Iov1E4hbQbxHlOcc6gUDOhY="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ libusb1 ] From fc4fa263ff7d4f6c0c4de8c3a78b2d509c5f9a0f Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Fri, 7 Oct 2022 07:58:38 -0700 Subject: [PATCH 2/2] probe-run: modernize Co-authored-by: Fabian Affolter --- .../tools/rust/probe-run/default.nix | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/rust/probe-run/default.nix b/pkgs/development/tools/rust/probe-run/default.nix index b6884d06ae26..59d9f7c6d595 100644 --- a/pkgs/development/tools/rust/probe-run/default.nix +++ b/pkgs/development/tools/rust/probe-run/default.nix @@ -1,5 +1,13 @@ -{ lib, stdenv, rustPlatform, fetchCrate, pkg-config, libusb1 -, libiconv, AppKit, IOKit }: +{ lib +, stdenv +, rustPlatform +, fetchCrate +, pkg-config +, libusb1 +, libiconv +, AppKit +, IOKit +}: rustPlatform.buildRustPackage rec { pname = "probe-run"; @@ -12,9 +20,17 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-kmdRwAq6EOniGHC7JhB6Iov1E4hbQbxHlOcc6gUDOhY="; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ libusb1 ] - ++ lib.optionals stdenv.isDarwin [ libiconv AppKit IOKit ]; + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + libusb1 + ] ++ lib.optionals stdenv.isDarwin [ + libiconv + AppKit + IOKit + ]; meta = with lib; { description = "Run embedded programs just like native ones";