18 lines
526 B
Ruby
18 lines
526 B
Ruby
|
class GrinWallet < Formula
|
||
|
desc "Official wallet for the cryptocurrency Grin"
|
||
|
homepage "https://grin.mw"
|
||
|
url "https://github.com/mimblewimble/grin-wallet/archive/v2.1.0.tar.gz"
|
||
|
sha256 "649664af929fc2afd42e52597ad675d3e1856c95e0cda60ef8d4c478abe5c01c"
|
||
|
|
||
|
depends_on "rust" => :build
|
||
|
|
||
|
def install
|
||
|
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
system "yes | #{bin}/grin-wallet init"
|
||
|
assert_predicate testpath/".grin/main/wallet_data/wallet.seed", :exist?
|
||
|
end
|
||
|
end
|