depot/third_party/nixpkgs/pkgs/development/tools/rust/ravedude/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

42 lines
937 B
Nix

{ lib
, rustPlatform
, fetchCrate
, pkg-config
, udev
, nix-update-script
, testers
, ravedude
}:
rustPlatform.buildRustPackage rec {
pname = "ravedude";
version = "0.1.6";
src = fetchCrate {
inherit pname version;
hash = "sha256-LhPRz3DUMDoe50Hq3yO+2BHpyh5fQ4sMNGLttjkdSZw=";
};
cargoHash = "sha256-Uo8wlTAHBkn/WeGPhPP+BU80wjSyNHsWQj8QvA7mHrk=";
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";
};
}