{ lib, fetchFromGitHub, rustPlatform, }: rustPlatform.buildRustPackage rec { pname = "esp-generate"; version = "0.5.0"; src = fetchFromGitHub { owner = "esp-rs"; repo = "esp-generate"; rev = "v${version}"; hash = "sha256-rvgmmG0LhRb+eRdqmlCf514lzV0QGWPaJ8pnlTnxfvo="; }; cargoHash = "sha256-ai8FUKHK/iHeUEgklZEDAMKoorXVDxGSZVrB7LahVV8="; meta = { description = "Template generation tool to create no_std applications targeting Espressif's chips"; homepage = "https://github.com/esp-rs/esp-generate"; license = with lib.licenses; [ mit # or asl20 ]; maintainers = [ lib.maintainers.eymeric ]; }; }