ravedude: add simple version test

This commit is contained in:
Olli Helenius 2023-11-26 19:33:26 +02:00
parent 9eab5170f3
commit 52ef1ef0cc
No known key found for this signature in database
GPG Key ID: 67235CC88F41DE3C

View File

@ -4,6 +4,8 @@
, pkg-config
, udev
, nix-update-script
, testers
, ravedude
}:
rustPlatform.buildRustPackage rec {
@ -21,7 +23,13 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ udev ];
passthru.updateScript = nix-update-script { };
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";