homebrew-core/Formula/dhall-json.rb

30 lines
979 B
Ruby
Raw Normal View History

require "language/haskell"
class DhallJson < Formula
include Language::Haskell::Cabal
desc "Dhall to JSON compiler and a Dhall to YAML compiler"
homepage "https://github.com/Gabriel439/Haskell-Dhall-JSON-Library"
url "https://hackage.haskell.org/package/dhall-json-1.0.2/dhall-json-1.0.2.tar.gz"
sha256 "a16ebf9524884d0ecfa2963a6c4f15a380d0fa679b0bf0f342345535a18e22ea"
2017-04-30 20:42:48 +00:00
head "https://github.com/Gabriel439/Haskell-Dhall-JSON-Library.git"
2017-03-06 23:57:45 +00:00
bottle do
cellar :any_skip_relocation
2017-05-18 05:07:48 +00:00
sha256 "ee0cf9811887e0cf22c481902e5356aaf934ea1dd5690fad0c6293e62c9eee86" => :sierra
sha256 "871e523ab5be7d9acd3da6a97e91a0647b665dcad6756b45287ff1d3da625ed4" => :el_capitan
sha256 "fc58615a08cf6daf153847a1f6e62543b685e259b13b1b4c18b1446ba584118e" => :yosemite
2017-03-06 23:57:45 +00:00
end
depends_on "ghc" => :build
depends_on "cabal-install" => :build
def install
install_cabal_package
end
test do
assert_match "1", pipe_output("#{bin}/dhall-to-json", "1", 0)
end
end