Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchCrate,
|
|
pkg-config,
|
|
udev,
|
|
avrdude,
|
|
makeBinaryWrapper,
|
|
nix-update-script,
|
|
testers,
|
|
ravedude,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "ravedude";
|
|
version = "0.2.1";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-LYHWUVREnGNR/vqtj+VklV3o74KUJu+Yi8ftulCJt9s=";
|
|
};
|
|
|
|
cargoHash = "sha256-rD8rFs3zfWjQXm3mLvY2tpVS6X8wHJka2qs4D3/pa4E=";
|
|
|
|
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 {
|
|
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
|
|
liff
|
|
];
|
|
mainProgram = "ravedude";
|
|
};
|
|
}
|