python313Packages.ua-parser: 1.0.0 -> 1.0.1 (#379497)
[NixPkgs.git] / pkgs / by-name / el / elf2uf2-rs / package.nix
blobb10158311d3441374171a543b6b851f2e2f431ca
2   lib,
3   stdenv,
4   rustPlatform,
5   fetchCrate,
6   pkg-config,
7   udev,
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "elf2uf2-rs";
12   version = "2.1.1";
14   src = fetchCrate {
15     inherit pname version;
16     hash = "sha256-7RS2OC00tjsSBYFvg0/FQf1HN515FdrmCoKhJBu4fvI=";
17   };
19   cargoHash = "sha256-oz2XVqDWmv/8HLrIFL+xJinZNUdoWk4KVHDPZr2v+Ls=";
21   nativeBuildInputs = [
22     pkg-config
23   ];
25   buildInputs = lib.optional stdenv.hostPlatform.isLinux udev;
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   };