2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
, pkg-config
|
|
|
|
, udev
|
2024-01-02 11:29:13 +00:00
|
|
|
, nix-update-script
|
|
|
|
, testers
|
|
|
|
, ravedude
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ravedude";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.1.6";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-LhPRz3DUMDoe50Hq3yO+2BHpyh5fQ4sMNGLttjkdSZw=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
cargoHash = "sha256-Uo8wlTAHBkn/WeGPhPP+BU80wjSyNHsWQj8QvA7mHrk=";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ udev ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = ravedude;
|
|
|
|
version = "v${version}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "ravedude";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
}
|