Skip to content

Commit

Permalink
espflash: init at 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
newAM committed Dec 19, 2023
1 parent b0d1fe9 commit 95fbdb3
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pkgs/development/embedded/espflash/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ lib
, rustPlatform
, fetchCrate
, pkg-config
, stdenv
, udev
, Security
, SystemConfiguration
}:

rustPlatform.buildRustPackage rec {
pname = "espflash";
version = "2.1.0";

src = fetchCrate {
inherit pname version;
hash = "sha256-Gd+8pA36mO+BCA0EFshboBi0etNjsiQFQU1wBYf/o6I=";
};

nativeBuildInputs = [ pkg-config ];

buildInputs = lib.optionals stdenv.isLinux [
udev
] ++ lib.optionals stdenv.isDarwin [
Security
SystemConfiguration
];

cargoHash = "sha256-IObAbsyrVBXt5zldirRezU7vS3R3aUihMFy2yIRWIlk=";

meta = with lib; {
description = "Serial flasher utility for Espressif SoCs and modules";
homepage = "https://github.com/esp-rs/espflash";
changelog = "https://github.com/esp-rs/espflash/blob/v${version}/CHANGELOG.md";
mainProgram = "espflash";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ newam ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31445,6 +31445,10 @@ with pkgs;

espeakup = callPackage ../applications/accessibility/espeakup { };

espflash = callPackage ../development/embedded/espflash {
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
};

etebase-server = with python3Packages; toPythonApplication etebase-server;

etesync-dav = callPackage ../applications/misc/etesync-dav { };
Expand Down

0 comments on commit 95fbdb3

Please sign in to comment.