From 9a7ba0c47d001c9be97e7db2daca724743495810 Mon Sep 17 00:00:00 2001 From: Andreas Herrmann Date: Fri, 14 Feb 2020 11:21:18 +0100 Subject: [PATCH] Define bzl_library targets These are required to generate Stardoc documentation for any rules set that depends on rules_nixpkgs. --- nixpkgs/BUILD.bazel | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/nixpkgs/BUILD.bazel b/nixpkgs/BUILD.bazel index 00d87a19e..fd17f0f17 100644 --- a/nixpkgs/BUILD.bazel +++ b/nixpkgs/BUILD.bazel @@ -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", + ], +)