mirrexagon / nixpkgs-esp-dev

Nix flake and overlay for ESP8266 and ESP32 development.
Creative Commons Zero v1.0 Universal
143 stars 71 forks source link

Error when used in a flake #36

Closed Brad-Hesson closed 9 months ago

Brad-Hesson commented 9 months ago

When using the esp-idf-esp32c3 package as part of a devShell flake, I get this error:

error: contextlib2-21.6.0 not supported for interpreter python3.11

This is the code I am trying to run:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    esp-idf = {
      url = "github:mirrexagon/nixpkgs-esp-dev";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };
  outputs = flakes:
    let
      system = "x86_64-linux";
      pkgs = import flakes.nixpkgs { inherit system; };
      esp-idf = flakes.esp-idf.packages.${system};
    in
    {
      devShells.${system}.default = pkgs.mkShell {
        packages = [
          esp-idf.esp-idf-esp32c3
        ];
      };
    };
}