Gatekeeper only applies to software downloaded from the internet. Browsers set the "quarantine" attribute for downloaded files, and then Gatekeeper kicks in on first launch.
Software that you build locally, or that you install with a package manager, is not affected.
The goal of Gatekeeper is to keep your Mac safe -- not to control what you can do on your Mac.