starship 0.2.0 (new formula)

Closes #42121.

Signed-off-by: Sean Molenaar <smillerdev@me.com>
This commit is contained in:
Matan Kushner 2019-07-15 13:13:01 -04:00 committed by Sean Molenaar
parent fa7455615d
commit ca1ba5c992
No known key found for this signature in database
GPG key ID: 6BF5D8DF0D34FAAE

19
Formula/starship.rb Normal file
View file

@ -0,0 +1,19 @@
class Starship < Formula
desc "The cross-shell prompt for astronauts"
homepage "https://github.com/starship/starship"
url "https://github.com/starship/starship/archive/v0.2.0.tar.gz"
sha256 "27df9d27e7e5687bd16b8d7b3805b4687f667d76300e4b90e1770f925c27bade"
head "https://github.com/starship/starship.git"
depends_on "rust" => :build
depends_on "openssl"
def install
system "cargo", "install", "--root", prefix, "--path", "."
end
test do
ENV["STARSHIP_CONFIG"] = ""
assert_equal "➜ ", shell_output("#{bin}/starship module char")
end
end