Skip to content

Commit

Permalink
Update rules_haskell (digital-asset#2105)
Browse files Browse the repository at this point in the history
Support for static GHC has been merged upstream.
  • Loading branch information
aherrmann-da authored Jul 11, 2019
1 parent caabe38 commit 80c449d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ haskell_register_ghc_nixpkgs(
"@com_github_digital_asset_daml//:profiling_build": ["-fprof-auto"],
"//conditions:default": [],
},
is_static = True,
locale_archive = "@glibc_locales//:locale-archive",
nix_file = "//nix:bazel.nix",
nix_file_deps = nix_ghc_deps,
Expand Down
12 changes: 2 additions & 10 deletions deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,12 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file"
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

rules_scala_version = "8092d5f6165a8d9c4797d5f089c1ba4eee3326b1"
rules_haskell_version = "772f04acc3eec5b6d219db09e46604ccff1f5755"
rules_haskell_sha256 = "d4bb5ecc0f2d0949a1b4bddd1b64c164d750247cccc1a883ae6b6430ae9c8b6e"
rules_haskell_version = "2f5e87989d8676aae1e15d75004ba94c14b3a27a"
rules_haskell_sha256 = "9e55ee80a7790e6701fb2147b8aff69edc1212f91505685b72b7c636913dcf8b"
rules_nixpkgs_version = "5ffb8a4ee9a52bc6bc12f95cd64ecbd82a79bc82"

def daml_deps():
if "io_tweag_rules_haskell" not in native.existing_rules():
http_file(
name = "haskell_static_ghc_patch",
urls = ["https://github.com/tweag/rules_haskell/commit/819c4847dcc00fbf0563227b80e08b9ccef9dbc0.patch"],
sha256 = "f2d56f9d7b7fd17c0f033404ee5f6ad6bc5bc69744fd13134c965bbfc2c42514",
)
http_archive(
name = "io_tweag_rules_haskell",
strip_prefix = "rules_haskell-%s" % rules_haskell_version,
Expand All @@ -51,9 +46,6 @@ def daml_deps():
"@com_github_digital_asset_daml//bazel_tools:haskell-darwin-symlink-dylib.patch",
"@com_github_digital_asset_daml//bazel_tools:haskell-ghci-grpc.patch",
"@com_github_digital_asset_daml//bazel_tools:haskell_public_ghci_repl_wrapper.patch",
# XXX: Remove once upstream PR was merged and we've updated to
# Bazel 0.27. https://github.com/tweag/rules_haskell/pull/970
"@haskell_static_ghc_patch//file:downloaded",
"@com_github_digital_asset_daml//bazel_tools:haskell-windows-library-dirs.patch",
"@com_github_digital_asset_daml//bazel_tools:haskell-runfiles.patch",
],
Expand Down

0 comments on commit 80c449d

Please sign in to comment.