@@ -37,9 +37,9 @@ haskell_nixpkgs_package(
3737
3838http_archive (
3939 name = "com_google_protobuf" ,
40- sha256 = "d625beb4a43304409429a0466bb4fb44c89f7e7d90aeced972b8a61dbe92c80b " ,
41- strip_prefix = "protobuf-7b28271a61a3da0a37f6fda399b0c4c86464e5b3 " ,
42- urls = ["https://github.com/google/protobuf/archive/7b28271a61a3da0a37f6fda399b0c4c86464e5b3.zip " ], # 2018-11-16
40+ sha256 = "73fdad358857e120fd0fa19e071a96e15c0f23bb25f85d3f7009abfd4f264a2a " ,
41+ strip_prefix = "protobuf-3.6.1.3 " ,
42+ urls = ["https://github.com/google/protobuf/archive/v3.6.1.3.tar.gz " ],
4343)
4444
4545nixpkgs_local_repository (
@@ -130,9 +130,9 @@ import_packages(name = "hackage")
130130
131131# zlib as a Haskell library
132132
133- new_http_archive (
133+ http_archive (
134134 name = "haskell_zlib" ,
135- build_file = "tests/ BUILD.zlib" ,
135+ build_file = "//tests: BUILD.zlib" ,
136136 strip_prefix = "zlib-0.6.2" ,
137137 urls = ["https://hackage.haskell.org/package/zlib-0.6.2/zlib-0.6.2.tar.gz" ],
138138)
@@ -150,46 +150,77 @@ local_repository(
150150
151151# For Skydoc
152152
153+ nixpkgs_package (
154+ name = "nixpkgs_nodejs" ,
155+ # XXX Indirection derivation to make all of NodeJS rooted in
156+ # a single directory. We shouldn't need this, but it's
157+ # a workaround for
158+ # https://github.com/bazelbuild/bazel/issues/2927.
159+ nix_file_content = """
160+ with import <nixpkgs> {};
161+ runCommand "nodejs-rules_haskell" { buildInputs = [ nodejs ]; } ''
162+ mkdir -p $out/nixpkgs_nodejs
163+ cd $out/nixpkgs_nodejs
164+ for i in ${nodejs}/*; do ln -s $i; done
165+ ''
166+ """ ,
167+ repository = "@nixpkgs" ,
168+ )
169+
170+ http_archive (
171+ name = "build_bazel_rules_nodejs" ,
172+ sha256 = "f79f605a920145216e64991d6eff4e23babc48810a9efd63a31744bb6637b01e" ,
173+ strip_prefix = "rules_nodejs-b4dad57d2ecc63d74db1f5523593639a635e447d" ,
174+ # Tip of https://github.com/bazelbuild/rules_nodejs/pull/471.
175+ urls = ["https://github.com/mboes/rules_nodejs/archive/b4dad57d2ecc63d74db1f5523593639a635e447d.tar.gz" ],
176+ )
177+
153178http_archive (
154179 name = "io_bazel_rules_sass" ,
155- sha256 = "14536292b14b5d36d1d72ae68ee7384a51e304fa35a3c4e4db0f4590394f36ad " ,
156- strip_prefix = "rules_sass-0.0.3 " ,
157- urls = ["https://github.com/bazelbuild/rules_sass/archive/0.0.3 .tar.gz" ],
180+ sha256 = "1e135452dc627f52eab39a50f4d5b8d13e8ed66cba2e6da56ac4cbdbd776536c " ,
181+ strip_prefix = "rules_sass-1.15.2 " ,
182+ urls = ["https://github.com/bazelbuild/rules_sass/archive/1.15.2 .tar.gz" ],
158183)
159184
160- load ("@io_bazel_rules_sass//sass:sass.bzl" , "sass_repositories" )
185+ load ("@io_bazel_rules_sass//:package.bzl" , "rules_sass_dependencies" )
186+
187+ rules_sass_dependencies ()
188+
189+ load ("@io_bazel_rules_sass//:defs.bzl" , "sass_repositories" )
161190
162191sass_repositories ()
163192
193+ load ("@build_bazel_rules_nodejs//:defs.bzl" , "node_repositories" )
194+
195+ node_repositories (
196+ vendored_node = "@nixpkgs_nodejs" ,
197+ )
198+
164199http_archive (
165200 name = "io_bazel_skydoc" ,
166- sha256 = "12a82b494a40c4ef96230bc66aeff654420dd39a537eb3064ff18ce1838f1fb7 " ,
167- strip_prefix = "skydoc-9bbdf62c03b5c3fed231604f78d3976f47753d79 " ,
168- urls = ["https://github.com/mrkkrp /skydoc/archive/9bbdf62c03b5c3fed231604f78d3976f47753d79 .tar.gz" ],
201+ sha256 = "19eb6c162075707df5703c274d3348127625873dbfa5ff83b1ef4b8f5dbaa449 " ,
202+ strip_prefix = "skydoc-0.2.0 " ,
203+ urls = ["https://github.com/bazelbuild /skydoc/archive/0.2.0 .tar.gz" ],
169204)
170205
171- load ("@io_bazel_skydoc//skylark:skylark .bzl" , "skydoc_repositories" )
206+ load ("@io_bazel_skydoc//:setup .bzl" , "skydoc_repositories" )
172207
173208skydoc_repositories ()
174209
175210# For buildifier
176211
177- # XXX Need a patched version of rules_go to workaround warnings fixed
178- # by https://github.com/NixOS/nixpkgs/pull/28029 on NixOS. Revert to
179- # official release once fix hits Nixpkgs master.
180212http_archive (
181213 name = "io_bazel_rules_go" ,
182- strip_prefix = "rules_go-6a2b1f780b475a75a7baae5b441635c566f0ed8a" ,
183- urls = ["https://github.com/mboes/rules_go/archive/6a2b1f780b475a75a7baae5b441635c566f0ed8a.tar.gz" ],
214+ sha256 = "8be57ff66da79d9e4bd434c860dce589195b9101b2c187d144014bbca23b5166" ,
215+ strip_prefix = "rules_go-0.16.3" ,
216+ urls = ["https://github.com/bazelbuild/rules_go/archive/0.16.3.tar.gz" ],
184217)
185218
186- bazelbuild_buildtools_rev = "4a7914a1466ff7388c934bfcd43a3852928536f6"
187-
188219http_archive (
189220 name = "com_github_bazelbuild_buildtools" ,
190- sha256 = "45775c7bb7ee7656e9df4ca4278f977c8e4e260aff755734734c19321e14bc84 " ,
191- strip_prefix = "buildtools-%s" % bazelbuild_buildtools_rev ,
192- url = "https://github.com/bazelbuild/buildtools/archive/%s.zip" % bazelbuild_buildtools_rev ,
221+ sha256 = "d42e4c9727958bc5814d3bc44f19db5a24f419436cbba09f1e8913eb4a09da31 " ,
222+ strip_prefix = "buildtools-0.19.2.1" ,
223+ urls = [ "https://github.com/bazelbuild/buildtools/archive/0.19.2.1.tar.gz" ] ,
193224)
194225
195226load (
0 commit comments