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 Mar 6, 2024
1 parent 2a74722 commit b96f3c2
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 @@ -120,6 +120,13 @@ stdenv.mkDerivation rec {
dontUseNinjaCheck = true;

installPhase = ''
# make esp-idf cmake git version detection happy
git init .
git config user.email "nixbld@localhost"
git config user.name "nixbld"
git add README.md
git commit -m "make idf happy"
mkdir -p $out
cp -rv . $out/
Expand Down

0 comments on commit b96f3c2

Please sign in to comment.