biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / embedded / elf2uf2-rs / default.nix
blobe02b54a8d12cbe50079e8766692eca9105493969
1 { lib, stdenv, rustPlatform, fetchCrate, pkg-config, udev, CoreFoundation, DiskArbitration, Foundation }:
3 rustPlatform.buildRustPackage rec {
4   pname = "elf2uf2-rs";
5   version = "2.0.0";
7   src = fetchCrate {
8     inherit pname version;
9     sha256 = "sha256-cmiCOykORue0Cg2uUUWa/nXviX1ddbGNC5gRKe+1kYs=";
10   };
12   nativeBuildInputs = [
13     pkg-config
14   ];
16   buildInputs = lib.optional stdenv.isLinux udev
17     ++ lib.optionals stdenv.isDarwin [
18       CoreFoundation
19       DiskArbitration
20       Foundation
21     ];
23   cargoHash = "sha256-TBH3pLB6vQVGnfShLtFPNKjciuUIuTkvp3Gayzo+X9E=";
25   meta = with lib; {
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 ];
32   };