elf2uf2-rs: adapt for new apple-sdk pattern
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, rustPlatform, fetchCrate, pkg-config, udev, CoreFoundation, DiskArbitration, Foundation }:
|
||||
{ lib, stdenv, rustPlatform, fetchCrate, pkg-config, udev }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "elf2uf2-rs";
|
||||
@@ -9,18 +9,13 @@ rustPlatform.buildRustPackage rec {
|
||||
hash = "sha256-cmiCOykORue0Cg2uUUWa/nXviX1ddbGNC5gRKe+1kYs=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-TBH3pLB6vQVGnfShLtFPNKjciuUIuTkvp3Gayzo+X9E=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = lib.optional stdenv.hostPlatform.isLinux udev
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
CoreFoundation
|
||||
DiskArbitration
|
||||
Foundation
|
||||
];
|
||||
|
||||
cargoHash = "sha256-TBH3pLB6vQVGnfShLtFPNKjciuUIuTkvp3Gayzo+X9E=";
|
||||
buildInputs = lib.optional stdenv.hostPlatform.isLinux udev;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convert ELF files to UF2 for USB Flashing Bootloaders";
|
||||
|
||||
@@ -8059,9 +8059,7 @@ 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;
|
||||
};
|
||||
elf2uf2-rs = callPackage ../development/embedded/elf2uf2-rs {};
|
||||
|
||||
license_finder = callPackage ../development/tools/license_finder { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user