Skip to content

Instantly share code, notes, and snippets.

@fishi0x01
Last active May 12, 2024 09:03
Show Gist options
  • Save fishi0x01/29d4ada256bbca8b52e7505a0a764106 to your computer and use it in GitHub Desktop.
Save fishi0x01/29d4ada256bbca8b52e7505a0a764106 to your computer and use it in GitHub Desktop.
bump vsh version

BrewTestBot will auto-detect new releases and update automatically. https://github.com/orgs/Homebrew/discussions/3083

In the past, we had to:

  1. Install brew locally.
  2. Setup repo
cd Workspaces
git clone [email protected]:fishi0x01/homebrew-core.git
mkdir -p $(brew --repository homebrew/core)
rm -r $(brew --repository homebrew/core)
ln -s $(pwd)/homebrew-core $(brew --repository homebrew/core)
cd $(brew --repository homebrew/core)
brew bump-formula-pr --sha256 713d8f8901c7fc3b2c9c620ce928fa17e3b5a5f949d0dd37ad5ad48ae46dab4b --url https://github.com/fishi0x01/vsh/archive/refs/tags/v0.12.2.tar.gz vsh

You need a github API token -> the tool will generate a link to create one.

export VERSION=v0.12.2
nix-prefetch-url --unpack https://github.com/fishi0x01/vsh/archive/refs/tags/${VERSION}.tar.gz

--> set sha256 result from above command in .nix file

--> set new VERSION in .nix file

Now try to build it

cd $NIXPKGS
nix-build -A vsh

Ready to submit PR now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment