From 2a71c43614b394808d0524676910193f6cd0553f Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Wed, 22 May 2024 21:46:29 -0600 Subject: [PATCH] Bypass `git describe` caching in brew.sh Probably a good idea to work out a cleaner way with upstream. --- modules/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/default.nix b/modules/default.nix index 561c034..8aad1cf 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -306,6 +306,9 @@ let brew_sh="$out/Library/Homebrew/brew.sh" chmod u+w "$out/Library/Homebrew" "$brew_sh" sed -i -e 's/^HOMEBREW_VERSION=.*/HOMEBREW_VERSION="${brew.version}"/g' "$brew_sh" + + # 4.3.1: Clear GIT_REVISION to bypass caching mechanism + sed -i -e 's/^GIT_REVISION=.*/GIT_REVISION=""; HOMEBREW_VERSION="${brew.version}"/g' "$brew_sh" ''); in { options = {