Skip to content

Commit

Permalink
workaround esp-idf version detection
Browse files Browse the repository at this point in the history
If version.txt is missing some part of the cmake toolchain tries to read
refs/heads/fetchgit in the idf repo which failed.

This is not a perfect solution, but works nicely when using cargo.
  • Loading branch information
madmo committed Apr 29, 2024
1 parent 7972602 commit 970f693
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/esp-idf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,12 @@ stdenv.mkDerivation rec {
# directory to PYTHONPATH.
ln -s ${customPython} $out/python-env
ln -s ${customPython}/lib $out/lib
# make esp-idf cmake git version detection happy
cd $out
git init .
git config user.email "nixbld@localhost"
git config user.name "nixbld"
git commit --date="1970-01-01 00:00:00" --allow-empty -m "make idf happy"
'';
}

0 comments on commit 970f693

Please sign in to comment.