1 { lib, stdenv, rustPlatform, fetchCrate, pkg-config, udev, CoreFoundation, DiskArbitration, Foundation }:
3 rustPlatform.buildRustPackage rec {
9 sha256 = "sha256-cmiCOykORue0Cg2uUUWa/nXviX1ddbGNC5gRKe+1kYs=";
16 buildInputs = lib.optional stdenv.isLinux udev
17 ++ lib.optionals stdenv.isDarwin [
23 cargoHash = "sha256-TBH3pLB6vQVGnfShLtFPNKjciuUIuTkvp3Gayzo+X9E=";
26 description = "Convert ELF files to UF2 for USB Flashing Bootloaders";
27 mainProgram = "elf2uf2-rs";
28 homepage = "https://github.com/JoNil/elf2uf2-rs";
29 license = with licenses; [ bsd0 ];
30 platforms = platforms.linux ++ platforms.darwin;
31 maintainers = with maintainers; [ polygon moni ];