nixpkgs/pkgs/development/tools/rust/ravedude/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
937 B
Nix
Raw Normal View History

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