From 2d2c3c0bda8a06572e67189b3dcb83d7efe19643 Mon Sep 17 00:00:00 2001 From: Rafael Varago Date: Fri, 21 Apr 2023 23:25:08 +0200 Subject: [PATCH] ravedude: init at 0.1.5 This is a tool to make Rust development for AVR microcontrollers smoother by wrapping `avrdude`. https://github.com/Rahix/avr-hal/tree/main/ravedude --- .../tools/rust/ravedude/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/tools/rust/ravedude/default.nix diff --git a/pkgs/development/tools/rust/ravedude/default.nix b/pkgs/development/tools/rust/ravedude/default.nix new file mode 100644 index 0000000000000..ea5812e5ad1ef --- /dev/null +++ b/pkgs/development/tools/rust/ravedude/default.nix @@ -0,0 +1,30 @@ +{ lib +, rustPlatform +, fetchCrate +, pkg-config +, udev +}: + +rustPlatform.buildRustPackage rec { + pname = "ravedude"; + version = "0.1.5"; + + src = fetchCrate { + inherit pname version; + hash = "sha256-wcY9fvfIn1pWMAh5FI/QFl18CV2xjmRGSwwoRfGvujo="; + }; + + cargoHash = "sha256-AOIrB0FRagbA2+JEURF41d+th0AbR++U5WKCcZmh4Os="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ udev ]; + + meta = with lib; { + description = "Tool to easily flash code onto an AVR microcontroller with avrdude"; + homepage = "https://crates.io/crates/ravedude"; + license = with licenses; [ mit /* or */ asl20 ]; + platforms = platforms.linux; + maintainers = with maintainers; [ rvarago ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2908081c8b710..96ce7854891cd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16276,6 +16276,7 @@ with pkgs; ograc = callPackage ../development/tools/rust/ograc { }; + ravedude = callPackage ../development/tools/rust/ravedude { }; rhack = callPackage ../development/tools/rust/rhack { }; roogle = callPackage ../development/tools/rust/roogle { }; rustfmt = rustPackages.rustfmt;