Unverified Commit 3cbe716e authored by Matthias Beyer's avatar Matthias Beyer Committed by GitHub
Browse files

espflash: 4.1.0 -> 4.2.0, use finalAttrs (#452402)

parents 9fb696e1 d07fc57b
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -9,15 +9,15 @@
  openssl,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "espflash";
  version = "4.1.0";
  version = "4.2.0";

  src = fetchFromGitHub {
    owner = "esp-rs";
    repo = "espflash";
    tag = "v${version}";
    hash = "sha256-9ijQngCFm2ssX258nomgy84KEjib2nHVlQ2HG3prjqQ=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Ia7o2u7egBTlzQAWnME6+/8V+5Go70wwXi/nJLKbGZM=";
  };

  nativeBuildInputs = [
@@ -30,7 +30,7 @@ rustPlatform.buildRustPackage rec {

  buildInputs = [ openssl ];

  cargoHash = "sha256-vNGO2eWHwHcjhAZ9hrIkX3T4XYxYEvlb3R+JEVbXMZg=";
  cargoHash = "sha256-Jh5JoHHfbrpwedXHuCBlIJxCTYjKfofjAoWD8QhGSH8=";

  cargoBuildFlags = [
    "--exclude xtask"
@@ -49,7 +49,7 @@ rustPlatform.buildRustPackage rec {
  meta = {
    description = "Serial flasher utility for Espressif SoCs and modules based on esptool.py";
    homepage = "https://github.com/esp-rs/espflash";
    changelog = "https://github.com/esp-rs/espflash/blob/v${version}/CHANGELOG.md";
    changelog = "https://github.com/esp-rs/espflash/blob/v${finalAttrs.version}/CHANGELOG.md";
    mainProgram = "espflash";
    license = with lib.licenses; [
      mit # or
@@ -57,4 +57,4 @@ rustPlatform.buildRustPackage rec {
    ];
    maintainers = with lib.maintainers; [ matthiasbeyer ];
  };
}
})