espflash: use finalAttrs
This commit is contained in:
@@ -9,14 +9,14 @@
|
|||||||
openssl,
|
openssl,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "espflash";
|
pname = "espflash";
|
||||||
version = "4.2.0";
|
version = "4.2.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "esp-rs";
|
owner = "esp-rs";
|
||||||
repo = "espflash";
|
repo = "espflash";
|
||||||
tag = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-Ia7o2u7egBTlzQAWnME6+/8V+5Go70wwXi/nJLKbGZM=";
|
hash = "sha256-Ia7o2u7egBTlzQAWnME6+/8V+5Go70wwXi/nJLKbGZM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
meta = {
|
meta = {
|
||||||
description = "Serial flasher utility for Espressif SoCs and modules based on esptool.py";
|
description = "Serial flasher utility for Espressif SoCs and modules based on esptool.py";
|
||||||
homepage = "https://github.com/esp-rs/espflash";
|
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";
|
mainProgram = "espflash";
|
||||||
license = with lib.licenses; [
|
license = with lib.licenses; [
|
||||||
mit # or
|
mit # or
|
||||||
@@ -57,4 +57,4 @@ rustPlatform.buildRustPackage rec {
|
|||||||
];
|
];
|
||||||
maintainers = with lib.maintainers; [ matthiasbeyer ];
|
maintainers = with lib.maintainers; [ matthiasbeyer ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user