Skip to content

Commit b4cfa8e

Browse files
committed
Disable use of pkg-config for zlib
In recent versions haskell zlib is using pkg-config to locate the C zlib but thoughtfully there is a flag to disable it.
1 parent fbb0062 commit b4cfa8e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

rules_haskell_tests/non_module_deps_2.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def repositories(*, bzlmod): # @unused
3131
local_snapshot = "//:stackage_snapshot{}.yaml".format(
3232
"_" + str(GHC_VERSION) if GHC_VERSION else "",
3333
),
34+
# disable calling pkg-config
35+
flags = {"zlib": ["-pkg-config"]},
3436
packages = ["zlib"],
3537
stack_snapshot_json = ("//:stackage-zlib-snapshot{}.json".format(
3638
"_" + str(GHC_VERSION) if GHC_VERSION else "",

start

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ stack_snapshot(
271271
extra_deps = {"zlib": ["@zlib.dev//:zlib"]},
272272
packages = ["zlib"],
273273
274+
# disable calling pkg-config
275+
flags = {"zlib": ["-pkg-config"]},
276+
274277
# LTS snapshot published for ghc-${GHC_VERSION} (default version used by rules_haskell)
275278
snapshot = "$SNAPSHOT",
276279

0 commit comments

Comments
 (0)