Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add post fetch step that removes .git
Browse files Browse the repository at this point in the history
Leaving `.git` can make the hash unstable
lmbollen committed Jan 9, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ca418fc commit a9f9ea0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nix/openocd-riscv.nix
Original file line number Diff line number Diff line change
@@ -25,6 +25,10 @@ pkgs.stdenv.mkDerivation rec {
sha256 = "sha256-cc4OebtCCsZyaMIlTfpUe26MwZ8WnrFt+IYQ+B2Hzww=";
fetchSubmodules = true;
deepClone = true;
postFetch = ''
# See: https://github.com/NixOS/nixpkgs/issues/8567#issuecomment-1846499599
find "$out/" -type d -name '.git' | xargs rm -rf
'';
};

installPhase = ''

0 comments on commit a9f9ea0

Please sign in to comment.