Skip to content

Commit ad97513

Browse files
committed
only use zlib.dev on Nix else zlib.win --> zlib.hs
1 parent 833b699 commit ad97513

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ stack_snapshot(
111111
# In a separate repo because not all platforms support zlib.
112112
stack_snapshot(
113113
name = "stackage-zlib",
114-
extra_deps = {"zlib": ["@zlib.win//:zlib" if is_windows else "@zlib.dev//:zlib"]},
114+
extra_deps = {"zlib": ["@zlib.dev//:zlib" if is_nix_shell else "@zlib.hs//:zlib"]},
115115
packages = ["zlib"],
116116
snapshot = "lts-13.15",
117117
)
118118

119119
stack_snapshot(
120120
name = "stackage_ghcide",
121-
extra_deps = {"zlib": ["@zlib.win//:zlib" if is_windows else "@zlib.dev//:zlib"]},
121+
extra_deps = {"zlib": ["@zlib.dev//:zlib" if is_nix_shell else "@zlib.hs//:zlib"]},
122122
haddock = False,
123123
local_snapshot = "//:ghcide-stack-snapshot.yaml",
124124
packages = [
@@ -380,7 +380,7 @@ filegroup(
380380
)
381381

382382
http_archive(
383-
name = "zlib.win",
383+
name = "zlib.hs",
384384
build_file_content = """
385385
load("@rules_cc//cc:defs.bzl", "cc_library")
386386
cc_library(

0 commit comments

Comments
 (0)