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 dc25355
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/esp-idf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ 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 commit --date="1970-01-01 00:00:00" --allow-empty -m "make idf happy"
mkdir -p $out
cp -rv . $out/
Expand Down

0 comments on commit dc25355

Please sign in to comment.