forked from tweag/rules_nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate exposing
bzl_library
s and rendering docs
lumping these together forced strict toolchain-specific dependencies on all users, while these are normally only needed for development (in this case, rendering documentation only).
- Loading branch information
1 parent
c2dcbb2
commit 3785f94
Showing
19 changed files
with
186 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
load(":stardoc.bzl", "generate_documentation") | ||
|
||
exports_files([ | ||
"stardoc.bzl", | ||
"copy-files.sh", | ||
"compare-files.sh", | ||
] + glob(["templates/*"])) | ||
|
||
generate_documentation( | ||
name = "README.md", | ||
input = "//:nixpkgs.bzl", | ||
symbol_names = [ | ||
"nixpkgs_git_repository", | ||
"nixpkgs_local_repository", | ||
"nixpkgs_package", | ||
], | ||
deps = ["//:nixpkgs"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
filegroup( | ||
name = "srcs", | ||
srcs = glob(["**"]), | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
bzl_library( | ||
name = "nixpkgs", | ||
srcs = ["nixpkgs.bzl"], | ||
deps = [ | ||
"@bazel_skylib//lib:new_sets", | ||
"@bazel_skylib//lib:paths", | ||
"@bazel_skylib//lib:sets", | ||
"@bazel_skylib//lib:versions", | ||
"@rules_nixpkgs_cc//:cc", | ||
"@rules_nixpkgs_core//:bazel_tools", | ||
"@rules_nixpkgs_core//:nixpkgs", | ||
"@rules_nixpkgs_go//:go", | ||
"@rules_nixpkgs_java//:java", | ||
"@rules_nixpkgs_posix//:posix", | ||
"@rules_nixpkgs_python//:python", | ||
"@rules_nixpkgs_rust//:rust", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
load("@rules_nixpkgs_core//docs:stardoc.bzl", "generate_documentation") | ||
|
||
generate_documentation( | ||
name = "README.md", | ||
input = "//:cc.bzl", | ||
symbol_names = ["nixpkgs_cc_configure"], | ||
deps = ["//:cc"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# NOTE: temporary boilerplate for compatibility with `WORKSPACE` setup! | ||
# TODO: remove when migration to `bzlmod` is complete | ||
|
||
### generic dependencies for rendering documentation | ||
|
||
local_repository( | ||
name = "io_tweag_rules_nixpkgs", | ||
path = "../..", | ||
) | ||
|
||
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() | ||
|
||
### end generic dependencies for rendering documentation | ||
|
||
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("//:go.bzl", "nixpkgs_go_configure") | ||
|
||
nixpkgs_go_configure(repository = "@nixpkgs") | ||
|
||
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies") | ||
|
||
go_rules_dependencies() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
load("@rules_nixpkgs_core//docs:stardoc.bzl", "generate_documentation") | ||
|
||
generate_documentation( | ||
name = "README.md", | ||
input = "//:go.bzl", | ||
symbol_names = ["nixpkgs_go_configure"], | ||
deps = ["//:go"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
load("@rules_nixpkgs_core//docs:stardoc.bzl", "generate_documentation") | ||
|
||
generate_documentation( | ||
name = "README.md", | ||
input = "//:java.bzl", | ||
symbol_names = ["nixpkgs_java_configure"], | ||
deps = ["//:java"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
load("@rules_nixpkgs_core//docs:stardoc.bzl", "generate_documentation") | ||
|
||
generate_documentation( | ||
name = "README.md", | ||
input = "//:posix.bzl", | ||
symbol_names = ["nixpkgs_sh_posix_configure"], | ||
deps = ["//:posix"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.