elf2uf2-rs: 2.0.0 -> 2.1.1 (#368805)

This commit is contained in:
Donovan Glover
2025-01-04 21:14:05 +00:00
committed by GitHub
3 changed files with 38 additions and 37 deletions
+38
View File
@@ -0,0 +1,38 @@
{
lib,
stdenv,
rustPlatform,
fetchCrate,
pkg-config,
udev,
}:
rustPlatform.buildRustPackage rec {
pname = "elf2uf2-rs";
version = "2.1.1";
src = fetchCrate {
inherit pname version;
hash = "sha256-7RS2OC00tjsSBYFvg0/FQf1HN515FdrmCoKhJBu4fvI=";
};
cargoHash = "sha256-oz2XVqDWmv/8HLrIFL+xJinZNUdoWk4KVHDPZr2v+Ls=";
nativeBuildInputs = [
pkg-config
];
buildInputs = lib.optional stdenv.hostPlatform.isLinux udev;
meta = with lib; {
description = "Convert ELF files to UF2 for USB Flashing Bootloaders";
mainProgram = "elf2uf2-rs";
homepage = "https://github.com/JoNil/elf2uf2-rs";
license = with licenses; [ bsd0 ];
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [
polygon
moni
];
};
}
@@ -1,33 +0,0 @@
{ lib, stdenv, rustPlatform, fetchCrate, pkg-config, udev, CoreFoundation, DiskArbitration, Foundation }:
rustPlatform.buildRustPackage rec {
pname = "elf2uf2-rs";
version = "2.0.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-cmiCOykORue0Cg2uUUWa/nXviX1ddbGNC5gRKe+1kYs=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = lib.optional stdenv.hostPlatform.isLinux udev
++ lib.optionals stdenv.hostPlatform.isDarwin [
CoreFoundation
DiskArbitration
Foundation
];
cargoHash = "sha256-TBH3pLB6vQVGnfShLtFPNKjciuUIuTkvp3Gayzo+X9E=";
meta = with lib; {
description = "Convert ELF files to UF2 for USB Flashing Bootloaders";
mainProgram = "elf2uf2-rs";
homepage = "https://github.com/JoNil/elf2uf2-rs";
license = with licenses; [ bsd0 ];
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ polygon moni ];
};
}
-4
View File
@@ -8029,10 +8029,6 @@ with pkgs;
edb = libsForQt5.callPackage ../development/tools/misc/edb { };
elf2uf2-rs = darwin.apple_sdk_11_0.callPackage ../development/embedded/elf2uf2-rs {
inherit (darwin.apple_sdk_11_0.frameworks) CoreFoundation DiskArbitration Foundation;
};
license_finder = callPackage ../development/tools/license_finder { };
# NOTE: Override and set useIcon = false to use Awk instead of Icon.