Skip to content

Commit

Permalink
Add rules_nixpkgs 0.12
Browse files Browse the repository at this point in the history
Newer go versions need at least rules_nixpkgs 0.11, see tweag/rules_nixpkgs#417.
  • Loading branch information
avdv committed Sep 3, 2024
1 parent 6476d2e commit 9108812
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@ load("@rules_proto//proto:toolchains.bzl", "rules_proto_toolchains")

rules_proto_toolchains()

##########################
# rules_nixpkgs preamble
##########################

http_archive(
name = "io_tweag_rules_nixpkgs",
sha256 = "1adb04dc0416915fef427757f4272c4f7dacefeceeefc50f683aec7f7e9b787a",
strip_prefix = "rules_nixpkgs-0.12.0",
urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.12.0/rules_nixpkgs-0.12.0.tar.gz"],
)

load(
"@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl",
"rules_nixpkgs_dependencies",
)

rules_nixpkgs_dependencies(toolchains = [
"go",
"python",
"posix",
])

##########################
# rules_haskell preamble
##########################
Expand All @@ -41,8 +63,11 @@ load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
rules_haskell_dependencies()

load(
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl",
"@rules_nixpkgs_core//:nixpkgs.bzl",
"nixpkgs_local_repository",
)
load(
"@rules_nixpkgs_python//:python.bzl",
"nixpkgs_python_configure",
)

Expand Down Expand Up @@ -137,7 +162,7 @@ http_archive(
)

load(
"@io_tweag_rules_nixpkgs//nixpkgs:toolchains/go.bzl",
"@rules_nixpkgs_go//:go.bzl",
"nixpkgs_go_configure",
)

Expand Down

0 comments on commit 9108812

Please sign in to comment.