nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 38 lines 807 B view raw
1{ 2 lib, 3 stdenv, 4 rustPlatform, 5 fetchCrate, 6 pkg-config, 7 udev, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "elf2uf2-rs"; 12 version = "2.1.1"; 13 14 src = fetchCrate { 15 inherit pname version; 16 hash = "sha256-7RS2OC00tjsSBYFvg0/FQf1HN515FdrmCoKhJBu4fvI="; 17 }; 18 19 cargoHash = "sha256-OiZGM/cfGwJA3uCg5sf3eo99BJXFoSzL/2k8AioQeyM="; 20 21 nativeBuildInputs = [ 22 pkg-config 23 ]; 24 25 buildInputs = lib.optional stdenv.hostPlatform.isLinux udev; 26 27 meta = with lib; { 28 description = "Convert ELF files to UF2 for USB Flashing Bootloaders"; 29 mainProgram = "elf2uf2-rs"; 30 homepage = "https://github.com/JoNil/elf2uf2-rs"; 31 license = with licenses; [ bsd0 ]; 32 platforms = platforms.linux ++ platforms.darwin; 33 maintainers = with maintainers; [ 34 polygon 35 moni 36 ]; 37 }; 38}