fix flakae

This commit is contained in:
August 2026-11-28 19:36:06 -05:00
parent 36c75fbc97
commit 6d49e13759
Signed by: shibedrill
SSH Key Fingerprint: SHA256:M0m3JW1s38BgO2t0fG146Yxd9OJ2IOqkvCAsuRHQ6Pw
7 changed files with 69 additions and 27 deletions

View File

@ -11,7 +11,7 @@ build-std = ["std", "panic_abort"]
[env] [env]
MCU = "esp32c3" MCU = "esp32c3"
ESP_IDF_VERSION = "v5.5.3" ESP_IDF_VERSION = "v6.0.3"
ESP_IDF_TOOLS_INSTALL_DIR = "workspace" ESP_IDF_TOOLS_INSTALL_DIR = "workspace"
# Uncomment this if you have moved the target dir by setting CARGO_TARGET_DIR or similar. # Uncomment this if you have moved the target dir by setting CARGO_TARGET_DIR or similar.

1
.direnv/flake-profile Symbolic link
View File

@ -0,0 +1 @@
flake-profile-7-link

View File

@ -0,0 +1 @@
/nix/store/ynvkc9rjhvk1na771q4d7c2g23xk1hyr-nix-shell-env

View File

@ -23,7 +23,7 @@ esp-idf-svc = { git = "https://github.com/esp-rs/esp-idf.git" }
[dependencies] [dependencies]
log = "0.4" log = "0.4"
esp-idf-svc = { version = "0.53", features = ["critical-section", "embassy-time-driver", "embassy-sync"] } esp-idf-svc = { version = "0.54.2", features = ["critical-section", "embassy-time-driver", "embassy-sync"] }
# Remove `generic-queue-8` if you plan to use `embassy-time` WITH `embassy-executor` # Remove `generic-queue-8` if you plan to use `embassy-time` WITH `embassy-executor`
embassy-time = { version = "0.5", features = ["generic-queue-8"] } embassy-time = { version = "0.5", features = ["generic-queue-8"] }

View File

@ -1,5 +1,23 @@
{ {
"nodes": { "nodes": {
"espidf": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1790779005,
"narHash": "sha256-9k/9GHnFjkkiViqW3olmBlyJGcWbYohFSaVKv+Vvxbs=",
"owner": "hnaderi",
"repo": "espidf-nix",
"rev": "79f70365daf428432a27f940d4d511a7de50a084",
"type": "github"
},
"original": {
"owner": "hnaderi",
"repo": "espidf-nix",
"type": "github"
}
},
"fenix": { "fenix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -22,6 +40,22 @@
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": {
"lastModified": 1789921291,
"narHash": "sha256-Ft/BRnIqw1MywFoXydKobjjWmDFgDdYtSpJliE8+yUw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "44a91898084f46797b5fac650c7e8c9ac38c43d4",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1780145889, "lastModified": 1780145889,
"narHash": "sha256-md0zn0RnwNvPyASas1yG5YUuwQ4ALA6ucL50l0DvqCo=", "narHash": "sha256-md0zn0RnwNvPyASas1yG5YUuwQ4ALA6ucL50l0DvqCo=",
@ -39,8 +73,9 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"espidf": "espidf",
"fenix": "fenix", "fenix": "fenix",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs_2"
} }
}, },
"rust-analyzer-src": { "rust-analyzer-src": {

View File

@ -1,6 +1,7 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/26.05"; nixpkgs.url = "github:NixOS/nixpkgs/26.05";
espidf.url = "github:hnaderi/espidf-nix";
fenix = { fenix = {
url = "github:nix-community/fenix"; url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -8,34 +9,38 @@
}; };
outputs = outputs =
{ nixpkgs, fenix, ... }: { nixpkgs, fenix, espidf, ... }:
let let
#lib = pkgs.lib; pkgs = import nixpkgs {
system = "x86_64-linux"; overlays = [
pkgs = nixpkgs.legacyPackages.${system}; espidf.overlays.default
toolchain = fenix.packages.${system}.fromToolchainName { fenix.overlays.default
name = "nightly-2026-10-18"; ];
#sha256 = lib.fakeSha256; system = "x86_64-linux";
sha256 = "/cMB/kOBm9HQsV7Kb5N3n1b/ygfsuoNIChEh/jiS3A8=";
}; };
rust-toolchain = pkgs.fenix.fromToolchainFile {
file = ./rust-toolchain.toml;
sha256 = "sha256-/cMB/kOBm9HQsV7Kb5N3n1b/ygfsuoNIChEh/jiS3A8=";
};
esp-idf = (espidf.lib.mkEspIdf {
inherit pkgs;
idfVersion = "v6.0.3";
});
in in
{ {
devShells.x86_64-linux.default = pkgs.mkShell { devShells.x86_64-linux.default = pkgs.mkShell {
packages = [ packages = [
(toolchain.withComponents [ rust-toolchain
"cargo" esp-idf
"clippy" pkgs.espflash
"rust-src" pkgs.esp-idf
"rustc" pkgs.ldproxy
"rustfmt"]) pkgs.llvmPackages.libclang.lib
pkgs.cargo-generate (pkgs.python3.withPackages (python-pkgs: with python-pkgs; [
pkgs.espflash pip
pkgs.espup ]))
pkgs.ldproxy ];
(pkgs.python3.withPackages (python-pkgs: with python-pkgs; [ nativeBuildInputs = [pkgs.rustPlatform.bindgenHook ];
pip
]))
];
}; };
}; };
} }

View File

@ -1,3 +1,3 @@
[toolchain] [toolchain]
channel = "nightly" channel = "nightly-2026-10-18"
components = ["rust-src"] components = ["clippy", "rust-src", "rustc", "rustfmt"]