nixpkgs/pkgs/development/tools/rust/ravedude/default.nix
2024-03-16 00:16:00 +00:00

43 lines
937 B
Nix

{ lib
, rustPlatform
, fetchCrate
, pkg-config
, udev
, nix-update-script
, testers
, ravedude
}:
rustPlatform.buildRustPackage rec {
pname = "ravedude";
version = "0.1.8";
src = fetchCrate {
inherit pname version;
hash = "sha256-AvnojcWQ4dQKk6B1Tjhkb4jfL6BJDsbeEo4tlgbOp84=";
};
cargoHash = "sha256-HeFmQsgr6uHrWi6s5sMQ6n63a44Msarb5p0+wUzKFkE=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ udev ];
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = ravedude;
version = "v${version}";
};
};
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 ];
mainProgram = "ravedude";
};
}