mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-21 09:48:35 +03:00
4b0b8493ca
* Inline c2hs expansion. * Patch unix-compat for Windows unix-compat fails on Windows due to missing version macros in hsc files. This patches unix-compat inlining the effect of the corresponding version macro evaluation. * Add grpc-haskell to Windows CI * Fix formatting * Move unix-compat.patch Moved to bazel_tools, where all other Bazel patches reside. * Remove .chi files Those don't need to be checked in. * Add FIXME on checked in c2hs files.
40 lines
1.5 KiB
Python
40 lines
1.5 KiB
Python
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Helpers for setting up Hazel rules
|
|
|
|
# Our ghc-lib libraries
|
|
def hazel_ghclibs(version, shaParser, shaLibrary):
|
|
return [
|
|
# Read [Working on ghc-lib] for ghc-lib update instructions at
|
|
# https://github.com/DACH-NY/daml/blob/master/ghc-lib/working-on-ghc-lib.md
|
|
(
|
|
"ghc-lib-parser",
|
|
{
|
|
"url": "https://digitalassetsdk.bintray.com/ghc-lib/ghc-lib-parser-" + version + ".tar.gz",
|
|
"stripPrefix": "ghc-lib-parser-" + version,
|
|
"sha256": shaParser,
|
|
},
|
|
),
|
|
(
|
|
"ghc-lib",
|
|
{
|
|
"url": "https://digitalassetsdk.bintray.com/ghc-lib/ghc-lib-" + version + ".tar.gz",
|
|
"stripPrefix": "ghc-lib-" + version,
|
|
"sha256": shaLibrary,
|
|
},
|
|
),
|
|
]
|
|
|
|
# Things we override from Hackage
|
|
def hazel_hackage(name, version, sha, **kwargs):
|
|
return [(name, {"version": version, "sha256": sha} + kwargs)]
|
|
|
|
# Things we override from GitHub
|
|
def hazel_github_external(project, name, commit, sha):
|
|
return [(name, {"url": "https://github.com/" + project + "/" + name + "/archive/" + commit + ".zip", "sha256": sha, "stripPrefix": name + "-" + commit})]
|
|
|
|
# Things we get from the digital-asset GitHub
|
|
def hazel_github(name, commit, sha):
|
|
return hazel_github_external("digital-asset", name, commit, sha)
|