Closed Mastergamer433 closed 1 year ago
@Mastergamer433 , this seems to be caused by using a newer nixpkgs. Seems that there is some issue with the IDF Python dependencies as per #12 .
The only solution I can see at the moment is to pin the nixpkgs
version to the same as in the flake.lock of nixpkgs-esp-dev
.
Open your flake.lock
and change the nixpkgs
:
"nixpkgs": {
"locked": {
"lastModified": 1636377693,
"narHash": "sha256-mxnUQZEA361xcupT9RIEcWrNer/+Ik/pbRMDmdRr8gQ=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c11d08f02390aab49e7c22e6d0ea9b176394d961",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
If you have no flake.lock
file you might want to run nix flake update
first.
Maybe there might be a way to use the nixpkgs
as defined in the flake of nixpkgs-esp-dev
, but unfortunately I have no idea how to do that.
I'll try that when I get home. Sorry I have not responded. I have stuff to do in school.
As well as #12, #20 may have broken this use case, since the tools are no longer exported from the flake - let me know if your use case is broken now and I'll see what I can do.
I think @eliandoran's suggestion is the best for now - I know how to set other flakes' nixpkgs to follow the top-level one, but not the other way around.
I'm going to close this for inactivity - if you still have problems, you can reopen it.
I have made a flake for the hello world example in espressif's esp-idf repo. It looks like this:
but I get his error: