Skip to content

Commit

Permalink
Merge pull request #17 from tweag/fd/update-deps
Browse files Browse the repository at this point in the history
Update dependencies - take 2
  • Loading branch information
facundominguez authored Feb 10, 2022
2 parents d174200 + 1366f5a commit f2bf280
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 26 deletions.
16 changes: 8 additions & 8 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "rules_haskell",
sha256 = "427f7363d4b6addafaae1a371d60da6eb0a236b6fb7884d5a087e47e92f55403",
strip_prefix = "rules_haskell-f929776456ee3814991c6dcc4d67d15088cb148e",
url = "https://github.com/tweag/rules_haskell/archive/f929776456ee3814991c6dcc4d67d15088cb148e.zip",
sha256 = "851e16edc7c33b977649d66f2f587071dde178a6e5bcfeca5fe9ebbe81924334",
strip_prefix = "rules_haskell-0.14",
url = "https://github.com/tweag/rules_haskell/archive/refs/tags/v0.14.tar.gz",
)

load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
Expand Down Expand Up @@ -64,7 +64,7 @@ stack_snapshot(
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

haskell_register_ghc_nixpkgs(
attribute_path = "haskell.compiler.ghc8104",
attribute_path = "haskell.compiler.ghc8107",
compiler_flags = [
"-Werror",
"-Wall",
Expand All @@ -73,7 +73,7 @@ haskell_register_ghc_nixpkgs(
"-Wredundant-constraints",
],
repositories = {"nixpkgs": "@nixpkgs"},
version = "8.10.4",
version = "8.10.7",
)

###############
Expand All @@ -82,10 +82,10 @@ haskell_register_ghc_nixpkgs(

http_archive(
name = "io_bazel_rules_go",
sha256 = "69de5c704a05ff37862f7e0f5534d4f479418afc21806c887db544a316f3cb6b",
sha256 = "d6b2513456fe2229811da7eb67a444be7785f5323c6708b38d851d2b51e54d83",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
],
)

Expand Down
17 changes: 8 additions & 9 deletions example/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ local_repository(
##########################
# rules_haskell preamble
##########################

http_archive(
name = "rules_haskell",
sha256 = "427f7363d4b6addafaae1a371d60da6eb0a236b6fb7884d5a087e47e92f55403",
strip_prefix = "rules_haskell-f929776456ee3814991c6dcc4d67d15088cb148e",
url = "https://github.com/tweag/rules_haskell/archive/f929776456ee3814991c6dcc4d67d15088cb148e.zip",
sha256 = "851e16edc7c33b977649d66f2f587071dde178a6e5bcfeca5fe9ebbe81924334",
strip_prefix = "rules_haskell-0.14",
url = "https://github.com/tweag/rules_haskell/archive/refs/tags/v0.14.tar.gz",
)

load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
Expand Down Expand Up @@ -60,7 +59,7 @@ stack_snapshot(
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

haskell_register_ghc_nixpkgs(
attribute_path = "haskell.compiler.ghc8104",
attribute_path = "haskell.compiler.ghc8107",
compiler_flags = [
"-Werror",
"-Wall",
Expand All @@ -69,7 +68,7 @@ haskell_register_ghc_nixpkgs(
"-Wredundant-constraints",
],
repositories = {"nixpkgs": "@nixpkgs"},
version = "8.10.4",
version = "8.10.7",
)

###############
Expand All @@ -78,10 +77,10 @@ haskell_register_ghc_nixpkgs(

http_archive(
name = "io_bazel_rules_go",
sha256 = "69de5c704a05ff37862f7e0f5534d4f479418afc21806c887db544a316f3cb6b",
sha256 = "d6b2513456fe2229811da7eb67a444be7785f5323c6708b38d851d2b51e54d83",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
],
)

Expand Down
1 change: 1 addition & 0 deletions example/package-a/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ haskell_binary(
compiler_flags = [
"-DSOME_VALUE=1", # keep
],
main_file = "app/MainB.hs",
# base is left out of the dependencies in the cabal file but it
# is needed for building.
# We keep it here to check that we can keep dependencies.
Expand Down
2 changes: 1 addition & 1 deletion nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import (fetchTarball "https://github.com/nixos/nixpkgs/archive/46113713d4f25579e07b78116a61ab6f178f4153.tar.gz")
import (fetchTarball "https://github.com/nixos/nixpkgs/archive/89f196fe781c53cb50fef61d3063fa5e8d61b6e5.tar.gz")
1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mkShell {
binutils
cacert
nix
git
openjdk11
python3
# convenience dependencies
Expand Down
16 changes: 8 additions & 8 deletions tests/alternative-deps/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ local_repository(

http_archive(
name = "rules_haskell",
sha256 = "427f7363d4b6addafaae1a371d60da6eb0a236b6fb7884d5a087e47e92f55403",
strip_prefix = "rules_haskell-f929776456ee3814991c6dcc4d67d15088cb148e",
url = "https://github.com/tweag/rules_haskell/archive/f929776456ee3814991c6dcc4d67d15088cb148e.zip",
sha256 = "851e16edc7c33b977649d66f2f587071dde178a6e5bcfeca5fe9ebbe81924334",
strip_prefix = "rules_haskell-0.14",
url = "https://github.com/tweag/rules_haskell/archive/refs/tags/v0.14.tar.gz",
)

load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
Expand Down Expand Up @@ -65,7 +65,7 @@ stack_snapshot(
load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

haskell_register_ghc_nixpkgs(
attribute_path = "haskell.compiler.ghc8104",
attribute_path = "haskell.compiler.ghc8107",
compiler_flags = [
"-Werror",
"-Wall",
Expand All @@ -74,7 +74,7 @@ haskell_register_ghc_nixpkgs(
"-Wredundant-constraints",
],
repositories = {"nixpkgs": "@nixpkgs"},
version = "8.10.4",
version = "8.10.7",
)

###############
Expand All @@ -83,10 +83,10 @@ haskell_register_ghc_nixpkgs(

http_archive(
name = "io_bazel_rules_go",
sha256 = "69de5c704a05ff37862f7e0f5534d4f479418afc21806c887db544a316f3cb6b",
sha256 = "d6b2513456fe2229811da7eb67a444be7785f5323c6708b38d851d2b51e54d83",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
],
)

Expand Down

0 comments on commit f2bf280

Please sign in to comment.