summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Martens <alex@thinglab.org>2022-10-07 07:58:38 -0700
committerAlex Martens <alex@thinglab.org>2022-10-07 07:58:38 -0700
commitfc4fa263ff7d4f6c0c4de8c3a78b2d509c5f9a0f (patch)
tree06bea859273e84bf0330c077c984e4bf9a2152fa
parent436c831f9a7fc2bf8195077dbf4540c68fdd0e96 (diff)
downloadnixpkgs-fc4fa263ff7d4f6c0c4de8c3a78b2d509c5f9a0f.tar
nixpkgs-fc4fa263ff7d4f6c0c4de8c3a78b2d509c5f9a0f.tar.gz
nixpkgs-fc4fa263ff7d4f6c0c4de8c3a78b2d509c5f9a0f.tar.bz2
nixpkgs-fc4fa263ff7d4f6c0c4de8c3a78b2d509c5f9a0f.tar.lz
nixpkgs-fc4fa263ff7d4f6c0c4de8c3a78b2d509c5f9a0f.tar.xz
nixpkgs-fc4fa263ff7d4f6c0c4de8c3a78b2d509c5f9a0f.tar.zst
nixpkgs-fc4fa263ff7d4f6c0c4de8c3a78b2d509c5f9a0f.zip
probe-run: modernize
Co-authored-by: Fabian Affolter <fabian@affolter-engineering.ch>
-rw-r--r--pkgs/development/tools/rust/probe-run/default.nix26
1 files 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 b6884d06ae2..59d9f7c6d59 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";