ravedude: ensure avrdude is in the PATH

ravedude attempts to execute `avrdude` from the current `PATH` and
unless the user has separately installed `avrdude`, that will fail.
This commit is contained in:
Olli Helenius
2024-10-15 20:55:32 +03:00
parent c943e7520c
commit 276846c330
@@ -3,6 +3,8 @@
, fetchCrate
, pkg-config
, udev
, avrdude
, makeBinaryWrapper
, nix-update-script
, testers
, ravedude
@@ -19,10 +21,14 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-HeFmQsgr6uHrWi6s5sMQ6n63a44Msarb5p0+wUzKFkE=";
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config makeBinaryWrapper ];
buildInputs = [ udev ];
postInstall = ''
wrapProgram $out/bin/ravedude --suffix PATH : ${lib.makeBinPath [ avrdude ]}
'';
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {