forked from tweag/rules_nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
66 lines (48 loc) · 1.64 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
workspace(name = "io_tweag_rules_nixpkgs")
# For documentation
load("@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl", "rules_nixpkgs_dependencies")
rules_nixpkgs_dependencies()
load("@rules_nixpkgs_core//docs:dependencies_1.bzl", "docs_dependencies_1")
docs_dependencies_1()
load("@rules_nixpkgs_core//docs:dependencies_2.bzl", "docs_dependencies_2")
docs_dependencies_2()
# For tests
load(
"//nixpkgs:nixpkgs.bzl",
"nixpkgs_git_repository",
"nixpkgs_local_repository",
"nixpkgs_package",
)
nixpkgs_local_repository(
name = "nixpkgs",
nix_file = "@rules_nixpkgs_core//:nixpkgs.nix",
nix_file_deps = ["@rules_nixpkgs_core//:nixpkgs.json"],
)
nixpkgs_package(
name = "nix_2_4",
attribute_path = "nix_2_4",
repositories = {"nixpkgs": "@nixpkgs"},
)
# This is used to run Nix in a sandboxed Bazel test. See the test
# `run-test-invalid-nixpkgs-package`.
nixpkgs_package(
name = "coreutils_static",
attribute_path = "pkgsStatic.coreutils",
repository = "@nixpkgs",
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "7c10271940c6bce577d51a075ae77728964db285dac0a46614a7934dc34303e6",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.26.0/rules_go-v0.26.0.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.26.0/rules_go-v0.26.0.tar.gz",
],
)
load(
"//nixpkgs:toolchains/go.bzl",
"nixpkgs_go_configure",
)
nixpkgs_go_configure(repository = "@nixpkgs")
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies")
go_rules_dependencies()