I’m trying to write a formula for BlueSpecs Haskell Verilog Compiler which was recently open sourced (It was proprietary for the past 20 years).
The way BSV work is that its main binary is actually a script which sets up the BlueSpec environment and then invokes the Bluespec binaries.
The script resides in /Cellar/bsc/0.0/bin/bsc.
However, when installing, home-brew copies bsc into /usr/local/bin instead of creating a symlink to it.
Home-brew has some weird special treatment for scripts. homebrew handles true executable binaries just fine.
I need a symlink to the script because the script needs to see the lib folder where its contained.