Skip to content

Commit

Permalink
Merge pull request tweag#104 from tweag/bzl_library
Browse files Browse the repository at this point in the history
Define bzl_library for rules_nixpkgs
  • Loading branch information
Théophane Hufschmitt authored Feb 19, 2020
2 parents 49d527c + 9a7ba0c commit 531804b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions nixpkgs/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

package(default_visibility = ["//visibility:public"])

exports_files([
"nixpkgs.bzl",
])

# @bazel_tools//tools does not define a bzl_library itself, instead we are
# supposed to define our own using the @bazel_tools//tools:bzl_srcs filegroup.
# See https://github.com/bazelbuild/skydoc/issues/166
bzl_library(
name = "bazel_tools",
srcs = [
"@bazel_tools//tools:bzl_srcs",
],
)

bzl_library(
name = "repositories",
srcs = [
"repositories.bzl",
],
visibility = ["//visibility:public"],
deps = [
":bazel_tools",
],
)

bzl_library(
name = "nixpkgs",
srcs = [
"nixpkgs.bzl",
],
visibility = ["//visibility:public"],
deps = [
":bazel_tools",
],
)

0 comments on commit 531804b

Please sign in to comment.