bazel, bazel_7: move to pkgs/by-name/ba/

+5 -606
+1 -1
ci/OWNERS
··· 337 337 /pkgs/development/compilers/idris2 @mattpolzin 338 338 339 339 # Bazel 340 - /pkgs/development/tools/build-managers/bazel @Profpatsch 340 + /pkgs/by-name/ba/bazel_7 @Profpatsch 341 341 342 342 # NixOS modules for e-mail and dns services 343 343 /nixos/modules/services/mail/mailman.nix @peti
-7
pkgs/development/tools/build-managers/bazel/README.md
··· 1 - # The Bazel build tool 2 - 3 - https://bazel.build/ 4 - 5 - The bazel tool requires regular maintenance, especially under darwin, so we created a maintainers team. 6 - 7 - Please ping @NixOS/bazel in your github PR/issue to increase your chance of a quick turnaround, thanks!
-52
pkgs/development/tools/build-managers/bazel/bash-tools-test.nix
··· 1 - { 2 - writeText, 3 - bazel, 4 - runLocal, 5 - bazelTest, 6 - distDir, 7 - extraBazelArgs ? "", 8 - }: 9 - 10 - # Tests that certain executables are available in bazel-executed bash shells. 11 - 12 - let 13 - WORKSPACE = writeText "WORKSPACE" '' 14 - workspace(name = "our_workspace") 15 - ''; 16 - 17 - fileIn = writeText "input.txt" '' 18 - one 19 - two 20 - three 21 - ''; 22 - 23 - fileBUILD = writeText "BUILD" '' 24 - genrule( 25 - name = "tool_usage", 26 - srcs = [ ":input.txt" ], 27 - outs = [ "output.txt" ], 28 - cmd = "cat $(location :input.txt) | gzip - | gunzip - | awk '/t/' > $@", 29 - ) 30 - ''; 31 - 32 - workspaceDir = runLocal "our_workspace" { } '' 33 - mkdir $out 34 - cp ${WORKSPACE} $out/WORKSPACE 35 - cp ${fileIn} $out/input.txt 36 - cp ${fileBUILD} $out/BUILD 37 - ''; 38 - 39 - testBazel = bazelTest { 40 - name = "bazel-test-bash-tools"; 41 - bazelPkg = bazel; 42 - inherit workspaceDir; 43 - 44 - bazelScript = '' 45 - ${bazel}/bin/bazel build :tool_usage --distdir=${distDir} ${extraBazelArgs} 46 - cp bazel-bin/output.txt $out 47 - echo "Testing content" && [ "$(cat $out | wc -l)" == "2" ] && echo "OK" 48 - ''; 49 - }; 50 - 51 - in 52 - testBazel
pkgs/development/tools/build-managers/bazel/bazel_7/darwin_sleep.patch pkgs/by-name/ba/bazel_7/darwin_sleep.patch
+3 -3
pkgs/development/tools/build-managers/bazel/bazel_7/default.nix pkgs/by-name/ba/bazel_7/package.nix
··· 369 369 # On Darwin, the last argument to gcc is coming up as an empty string. i.e: '' 370 370 # This is breaking the build of any C target. This patch removes the last 371 371 # argument if it's found to be an empty string. 372 - ../trim-last-argument-to-gcc-if-empty.patch 372 + ./trim-last-argument-to-gcc-if-empty.patch 373 373 374 374 # --experimental_strict_action_env (which may one day become the default 375 375 # see bazelbuild/bazel#2574) hardcodes the default ··· 377 377 # This is non hermetic on non-nixos systems. On NixOS, bazel cannot find the required binaries. 378 378 # So we are replacing this bazel paths by defaultShellPath, 379 379 # improving hermeticity and making it work in nixos. 380 - (replaceVars ../strict_action_env.patch { 380 + (replaceVars ./strict_action_env.patch { 381 381 strictActionEnvPatch = defaultShellPath; 382 382 }) 383 383 384 384 # bazel reads its system bazelrc in /etc 385 385 # override this path to a builtin one 386 - (replaceVars ../bazel_rc.patch { 386 + (replaceVars ./bazel_rc.patch { 387 387 bazelSystemBazelRCPath = bazelRC; 388 388 }) 389 389 ]
pkgs/development/tools/build-managers/bazel/bazel_7/java_toolchain.patch pkgs/by-name/ba/bazel_7/java_toolchain.patch
pkgs/development/tools/build-managers/bazel/bazel_7/nix-build-bazel-package-hacks.patch pkgs/by-name/ba/bazel_7/nix-build-bazel-package-hacks.patch
pkgs/development/tools/build-managers/bazel/bazel_7/test_source_sort.patch pkgs/by-name/ba/bazel_7/test_source_sort.patch
pkgs/development/tools/build-managers/bazel/bazel_7/xcode_locator.patch pkgs/by-name/ba/bazel_7/xcode_locator.patch
pkgs/development/tools/build-managers/bazel/bazel_rc.patch pkgs/by-name/ba/bazel_7/bazel_rc.patch
-62
pkgs/development/tools/build-managers/bazel/cpp-test.nix
··· 1 - { 2 - bazel, 3 - bazelTest, 4 - bazel-examples, 5 - stdenv, 6 - cctools, 7 - darwin, 8 - extraBazelArgs ? "", 9 - lib, 10 - runLocal, 11 - runtimeShell, 12 - writeScript, 13 - distDir, 14 - }: 15 - 16 - let 17 - 18 - toolsBazel = writeScript "bazel" '' 19 - #! ${runtimeShell} 20 - 21 - export CXX='${stdenv.cc}/bin/clang++' 22 - export LD='${cctools}/bin/ld' 23 - export LIBTOOL='${cctools}/bin/libtool' 24 - export CC='${stdenv.cc}/bin/clang' 25 - 26 - # XXX: hack for macosX, this flags disable bazel usage of xcode 27 - # See: https://github.com/bazelbuild/bazel/issues/4231 28 - export BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 29 - 30 - exec "$BAZEL_REAL" "$@" 31 - ''; 32 - 33 - workspaceDir = runLocal "our_workspace" { } ( 34 - '' 35 - cp -r ${bazel-examples}/cpp-tutorial/stage3 $out 36 - find $out -type d -exec chmod 755 {} \; 37 - '' 38 - + (lib.optionalString stdenv.hostPlatform.isDarwin '' 39 - mkdir $out/tools 40 - cp ${toolsBazel} $out/tools/bazel 41 - '') 42 - ); 43 - 44 - testBazel = bazelTest { 45 - name = "${bazel.pname}-test-cpp"; 46 - inherit workspaceDir; 47 - bazelPkg = bazel; 48 - bazelScript = '' 49 - ${bazel}/bin/bazel build //... \ 50 - --verbose_failures \ 51 - --distdir=${distDir} \ 52 - --curses=no \ 53 - ${extraBazelArgs} \ 54 - '' 55 - + lib.optionalString (stdenv.hostPlatform.isDarwin) '' 56 - --cxxopt=-x --cxxopt=c++ --host_cxxopt=-x --host_cxxopt=c++ \ 57 - --linkopt=-stdlib=libc++ --host_linkopt=-stdlib=libc++ \ 58 - ''; 59 - }; 60 - 61 - in 62 - testBazel
-73
pkgs/development/tools/build-managers/bazel/java-test.nix
··· 1 - { 2 - bazel, 3 - bazelTest, 4 - bazel-examples, 5 - stdenv, 6 - cctools, 7 - extraBazelArgs ? "", 8 - lib, 9 - openjdk8, 10 - jdk11_headless, 11 - runLocal, 12 - runtimeShell, 13 - writeScript, 14 - writeText, 15 - distDir, 16 - }: 17 - 18 - let 19 - 20 - toolsBazel = writeScript "bazel" '' 21 - #! ${runtimeShell} 22 - 23 - export CXX='${stdenv.cc}/bin/clang++' 24 - export LD='${cctools}/bin/ld' 25 - export LIBTOOL='${cctools}/bin/libtool' 26 - export CC='${stdenv.cc}/bin/clang' 27 - 28 - # XXX: hack for macosX, this flags disable bazel usage of xcode 29 - # See: https://github.com/bazelbuild/bazel/issues/4231 30 - export BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 31 - 32 - exec "$BAZEL_REAL" "$@" 33 - ''; 34 - 35 - workspaceDir = runLocal "our_workspace" { } ( 36 - '' 37 - cp -r ${bazel-examples}/java-tutorial $out 38 - find $out -type d -exec chmod 755 {} \; 39 - '' 40 - + (lib.optionalString stdenv.hostPlatform.isDarwin '' 41 - mkdir $out/tools 42 - cp ${toolsBazel} $out/tools/bazel 43 - '') 44 - ); 45 - 46 - testBazel = bazelTest { 47 - name = "${bazel.pname}-test-java"; 48 - inherit workspaceDir; 49 - bazelPkg = bazel; 50 - buildInputs = [ 51 - (if lib.strings.versionOlder bazel.version "5.0.0" then openjdk8 else jdk11_headless) 52 - ]; 53 - bazelScript = '' 54 - ${bazel}/bin/bazel \ 55 - run \ 56 - --announce_rc \ 57 - ${lib.optionalString (lib.strings.versionOlder "5.0.0" bazel.version) "--toolchain_resolution_debug='@bazel_tools//tools/jdk:(runtime_)?toolchain_type'"} \ 58 - --distdir=${distDir} \ 59 - --verbose_failures \ 60 - --curses=no \ 61 - --strict_java_deps=off \ 62 - //:ProjectRunner \ 63 - '' 64 - + lib.optionalString (lib.strings.versionOlder bazel.version "5.0.0") '' 65 - --host_javabase='@local_jdk//:jdk' \ 66 - --java_toolchain='@bazel_tools//tools/jdk:toolchain_hostjdk8' \ 67 - --javabase='@local_jdk//:jdk' \ 68 - '' 69 - + extraBazelArgs; 70 - }; 71 - 72 - in 73 - testBazel
-194
pkgs/development/tools/build-managers/bazel/protobuf-test.nix
··· 1 - { 2 - bazel, 3 - bazelTest, 4 - fetchFromGitHub, 5 - fetchurl, 6 - stdenv, 7 - cctools, 8 - lib, 9 - openjdk8, 10 - jdk11_headless, 11 - runLocal, 12 - runtimeShell, 13 - writeScript, 14 - writeText, 15 - distDir, 16 - }: 17 - 18 - let 19 - com_google_protobuf = fetchFromGitHub { 20 - owner = "protocolbuffers"; 21 - repo = "protobuf"; 22 - rev = "v3.13.0"; 23 - sha256 = "1nqsvi2yfr93kiwlinz8z7c68ilg1j75b2vcpzxzvripxx5h6xhd"; 24 - }; 25 - 26 - bazel_skylib = fetchFromGitHub { 27 - owner = "bazelbuild"; 28 - repo = "bazel-skylib"; 29 - rev = "2ec2e6d715e993d96ad6222770805b5bd25399ae"; 30 - sha256 = "1z2r2vx6kj102zvp3j032djyv99ski1x1sl4i3p6mswnzrzna86s"; 31 - }; 32 - 33 - rules_python = fetchFromGitHub { 34 - owner = "bazelbuild"; 35 - repo = "rules_python"; 36 - rev = "c8c79aae9aa1b61d199ad03d5fe06338febd0774"; 37 - sha256 = "1zn58wv5wcylpi0xj7riw34i1jjpqahanxx8y9srwrv0v93b6pqz"; 38 - }; 39 - 40 - rules_proto = fetchFromGitHub { 41 - owner = "bazelbuild"; 42 - repo = "rules_proto"; 43 - rev = "a0761ed101b939e19d83b2da5f59034bffc19c12"; 44 - sha256 = "09lqfj5fxm1fywxr5w8pnpqd859gb6751jka9fhxjxjzs33glhqf"; 45 - }; 46 - 47 - net_zlib = fetchurl rec { 48 - url = "https://zlib.net/zlib-1.2.11.tar.gz"; 49 - sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1"; 50 - 51 - passthru.sha256 = sha256; 52 - }; 53 - 54 - WORKSPACE = writeText "WORKSPACE" '' 55 - workspace(name = "our_workspace") 56 - 57 - load("//:proto-support.bzl", "protobuf_deps") 58 - protobuf_deps() 59 - load("@rules_proto//proto:repositories.bzl", "rules_proto_toolchains") 60 - rules_proto_toolchains() 61 - ''; 62 - 63 - protoSupport = writeText "proto-support.bzl" '' 64 - """Load dependencies needed to compile the protobuf library as a 3rd-party consumer.""" 65 - 66 - load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 67 - 68 - def protobuf_deps(): 69 - """Loads common dependencies needed to compile the protobuf library.""" 70 - 71 - if "zlib" not in native.existing_rules(): 72 - # proto_library, cc_proto_library, and java_proto_library rules implicitly 73 - # depend on @com_google_protobuf for protoc and proto runtimes. 74 - # This statement defines the @com_google_protobuf repo. 75 - native.local_repository( 76 - name = "com_google_protobuf", 77 - path = "${com_google_protobuf}", 78 - ) 79 - native.local_repository( 80 - name = "bazel_skylib", 81 - path = "${bazel_skylib}", 82 - ) 83 - native.local_repository( 84 - name = "rules_proto", 85 - path = "${rules_proto}", 86 - ) 87 - native.local_repository( 88 - name = "rules_python", 89 - path = "${rules_python}", 90 - ) 91 - 92 - http_archive( 93 - name = "zlib", 94 - build_file = "@com_google_protobuf//:third_party/zlib.BUILD", 95 - sha256 = "${net_zlib.sha256}", 96 - strip_prefix = "zlib-1.2.11", 97 - urls = ["file://${net_zlib}"], 98 - ) 99 - ''; 100 - 101 - personProto = writeText "person.proto" '' 102 - syntax = "proto3"; 103 - 104 - package person; 105 - 106 - message Person { 107 - string name = 1; 108 - int32 id = 2; 109 - string email = 3; 110 - } 111 - ''; 112 - 113 - personBUILD = writeText "BUILD" '' 114 - load("@rules_proto//proto:defs.bzl", "proto_library") 115 - 116 - proto_library( 117 - name = "person_proto", 118 - srcs = ["person.proto"], 119 - visibility = ["//visibility:public"], 120 - ) 121 - 122 - java_proto_library( 123 - name = "person_java_proto", 124 - deps = [":person_proto"], 125 - ) 126 - 127 - cc_proto_library( 128 - name = "person_cc_proto", 129 - deps = [":person_proto"], 130 - ) 131 - ''; 132 - 133 - toolsBazel = writeScript "bazel" '' 134 - #! ${runtimeShell} 135 - 136 - export CXX='${stdenv.cc}/bin/clang++' 137 - export LD='${cctools}/bin/ld' 138 - export LIBTOOL='${cctools}/bin/libtool' 139 - export CC='${stdenv.cc}/bin/clang' 140 - 141 - # XXX: hack for macosX, this flags disable bazel usage of xcode 142 - # See: https://github.com/bazelbuild/bazel/issues/4231 143 - export BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 144 - 145 - exec "$BAZEL_REAL" "$@" 146 - ''; 147 - 148 - workspaceDir = runLocal "our_workspace" { } ( 149 - '' 150 - mkdir $out 151 - cp ${WORKSPACE} $out/WORKSPACE 152 - touch $out/BUILD.bazel 153 - cp ${protoSupport} $out/proto-support.bzl 154 - mkdir $out/person 155 - cp ${personProto} $out/person/person.proto 156 - cp ${personBUILD} $out/person/BUILD.bazel 157 - '' 158 - + (lib.optionalString stdenv.hostPlatform.isDarwin '' 159 - mkdir $out/tools 160 - cp ${toolsBazel} $out/tools/bazel 161 - '') 162 - ); 163 - 164 - testBazel = bazelTest { 165 - name = "${bazel.pname}-test-protocol-buffers"; 166 - inherit workspaceDir; 167 - bazelPkg = bazel; 168 - buildInputs = [ 169 - (if lib.strings.versionOlder bazel.version "5.0.0" then openjdk8 else jdk11_headless) 170 - ]; 171 - bazelScript = '' 172 - ${bazel}/bin/bazel \ 173 - build \ 174 - --distdir=${distDir} \ 175 - --verbose_failures \ 176 - --curses=no \ 177 - --subcommands \ 178 - --strict_java_deps=off \ 179 - --strict_proto_deps=off \ 180 - //... \ 181 - '' 182 - + lib.optionalString (lib.strings.versionOlder bazel.version "5.0.0") '' 183 - --host_javabase='@local_jdk//:jdk' \ 184 - --java_toolchain='@bazel_tools//tools/jdk:toolchain_hostjdk8' \ 185 - --javabase='@local_jdk//:jdk' \ 186 - '' 187 - + lib.optionalString (stdenv.hostPlatform.isDarwin) '' 188 - --cxxopt=-x --cxxopt=c++ --host_cxxopt=-x --host_cxxopt=c++ \ 189 - --linkopt=-stdlib=libc++ --host_linkopt=-stdlib=libc++ \ 190 - ''; 191 - }; 192 - 193 - in 194 - testBazel
-89
pkgs/development/tools/build-managers/bazel/python-bin-path-test.nix
··· 1 - { 2 - bazel, 3 - bazelTest, 4 - stdenv, 5 - cctools, 6 - extraBazelArgs ? "", 7 - lib, 8 - runLocal, 9 - runtimeShell, 10 - writeScript, 11 - writeText, 12 - distDir, 13 - }: 14 - 15 - let 16 - toolsBazel = writeScript "bazel" '' 17 - #! ${runtimeShell} 18 - 19 - export CXX='${stdenv.cc}/bin/clang++' 20 - export LD='${cctools}/bin/ld' 21 - export LIBTOOL='${cctools}/bin/libtool' 22 - export CC='${stdenv.cc}/bin/clang' 23 - 24 - # XXX: hack for macosX, this flags disable bazel usage of xcode 25 - # See: https://github.com/bazelbuild/bazel/issues/4231 26 - export BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 27 - 28 - exec "$BAZEL_REAL" "$@" 29 - ''; 30 - 31 - WORKSPACE = writeText "WORKSPACE" '' 32 - workspace(name = "our_workspace") 33 - ''; 34 - 35 - pythonLib = writeText "lib.py" '' 36 - def foo(): 37 - return 43 38 - ''; 39 - 40 - pythonBin = writeText "bin.py" '' 41 - from lib import foo 42 - 43 - assert foo() == 43 44 - ''; 45 - 46 - pythonBUILD = writeText "BUILD" '' 47 - py_library( 48 - name = "lib", 49 - srcs = [ "lib.py" ], 50 - ) 51 - 52 - py_binary( 53 - name = "bin", 54 - srcs = [ "bin.py" ], 55 - imports = [ "." ], 56 - deps = [ ":lib" ], 57 - ) 58 - ''; 59 - 60 - workspaceDir = runLocal "our_workspace" { } ( 61 - '' 62 - mkdir $out 63 - cp ${WORKSPACE} $out/WORKSPACE 64 - mkdir $out/python 65 - cp ${pythonLib} $out/python/lib.py 66 - cp ${pythonBin} $out/python/bin.py 67 - cp ${pythonBUILD} $out/python/BUILD.bazel 68 - '' 69 - + (lib.optionalString stdenv.hostPlatform.isDarwin '' 70 - mkdir $out/tools 71 - cp ${toolsBazel} $out/tools/bazel 72 - '') 73 - ); 74 - 75 - testBazel = bazelTest { 76 - name = "${bazel.pname}-test-builtin-rules"; 77 - inherit workspaceDir; 78 - bazelPkg = bazel; 79 - bazelScript = '' 80 - ${bazel}/bin/bazel \ 81 - run \ 82 - --distdir=${distDir} \ 83 - ${extraBazelArgs} \ 84 - //python:bin 85 - ''; 86 - }; 87 - 88 - in 89 - testBazel
-62
pkgs/development/tools/build-managers/bazel/shebang-test.nix
··· 1 - { 2 - bazel, 3 - bazelTest, 4 - extracted, 5 - ripgrep, 6 - runLocal, 7 - unzip, 8 - ... 9 - }: 10 - 11 - # Tests that all shebangs are patched appropriately. 12 - # #!/usr/bin/... should be replaced by Nix store references. 13 - # #!.../bin/env python should be replaced by Nix store reference to the python interpreter. 14 - 15 - let 16 - 17 - workspaceDir = runLocal "our_workspace" { } "mkdir $out"; 18 - 19 - testBazel = bazelTest { 20 - name = "bazel-test-shebangs"; 21 - inherit workspaceDir; 22 - bazelPkg = bazel; 23 - bazelScript = '' 24 - set -ueo pipefail 25 - FAIL= 26 - check_shebangs() { 27 - local dir="$1" 28 - { rg -e '#!/usr/bin' -e '#![^[:space:]]*/bin/env' $dir -e && echo && FAIL=1; } || true 29 - } 30 - extract() { 31 - local dir="$1" 32 - find "$dir" -type f '(' -name '*.zip' -or -name '*.jar' ')' -print0 \ 33 - | while IFS="" read -r -d "" zip ; do 34 - echo "Extracting $zip" 35 - local unzipped="$zip-UNPACKED" 36 - mkdir -p "$unzipped" 37 - unzip -qq $zip -d "$unzipped" 38 - extract "$unzipped" 39 - rm -rf "$unzipped" "$zip" || true 40 - done 41 - check_shebangs "$dir" 42 - } 43 - 44 - mkdir install_root 45 - cp --no-preserve=all -r ${extracted bazel}/install/*/* install_root/ 46 - extract ./install_root 47 - 48 - if [[ $FAIL = 1 ]]; then 49 - echo "Found files in the bazel distribution with illegal shebangs." >&2 50 - echo "Replace those by explicit Nix store paths." >&2 51 - echo "Python scripts should not use \`bin/env python' but the Python interpreter's store path." >&2 52 - exit 1 53 - fi 54 - ''; 55 - buildInputs = [ 56 - unzip 57 - ripgrep 58 - ]; 59 - }; 60 - 61 - in 62 - testBazel
pkgs/development/tools/build-managers/bazel/strict_action_env.patch pkgs/by-name/ba/bazel_7/strict_action_env.patch
pkgs/development/tools/build-managers/bazel/trim-last-argument-to-gcc-if-empty.patch pkgs/by-name/ba/bazel_7/trim-last-argument-to-gcc-if-empty.patch
-62
pkgs/development/tools/build-managers/bazel/update-srcDeps.py
··· 1 - #!/usr/bin/env python3 2 - import sys 3 - import json 4 - 5 - if len(sys.argv) == 1: 6 - print("usage: ./this-script WORKSPACE", file=sys.stderr) 7 - print("Takes the bazel WORKSPACE file and reads all archives into a json dict (by evaling it as python code)", file=sys.stderr) 8 - print("Hail Eris.", file=sys.stderr) 9 - sys.exit(1) 10 - 11 - http_archives = [] 12 - 13 - # just the kw args are the dict { name, sha256, urls … } 14 - def http_archive(**kw): 15 - http_archives.append(kw) 16 - # like http_file 17 - def http_file(**kw): 18 - http_archives.append(kw) 19 - 20 - # this is inverted from http_archive/http_file and bundles multiple archives 21 - def distdir_tar(**kw): 22 - for archive_name in kw['archives']: 23 - http_archives.append({ 24 - "name": archive_name, 25 - "sha256": kw['sha256'][archive_name], 26 - "urls": kw['urls'][archive_name] 27 - }) 28 - 29 - # stubs for symbols we are not interested in 30 - # might need to be expanded if new bazel releases add symbols to the workspace 31 - def workspace(name): pass 32 - def load(*args): pass 33 - def bind(**kw): pass 34 - def list_source_repository(**kw): pass 35 - def new_local_repository(**kw): pass 36 - def local_repository(**kw): pass 37 - DOC_VERSIONS = [] 38 - def stardoc_repositories(**kw): pass 39 - def skydoc_repositories(**kw): pass 40 - def rules_sass_dependencies(**kw): pass 41 - def node_repositories(**kw): pass 42 - def sass_repositories(**kw): pass 43 - def register_execution_platforms(*args): pass 44 - def rbe_autoconfig(*args, **kw): pass 45 - def rules_pkg_dependencies(*args, **kw): pass 46 - def winsdk_configure(*args, **kw): pass 47 - def register_local_rc_exe_toolchains(*args, **kw): pass 48 - def register_toolchains(*args, **kw): pass 49 - def debian_deps(): pass 50 - def grpc_deps(): pass 51 - def grpc_extra_deps(): pass 52 - def bazel_skylib_workspace(): pass 53 - 54 - # execute the WORKSPACE like it was python code in this module, 55 - # using all the function stubs from above. 56 - with open(sys.argv[1]) as f: 57 - exec(f.read()) 58 - 59 - # transform to a dict with the names as keys 60 - d = { el['name']: el for el in http_archives } 61 - 62 - print(json.dumps(d, sort_keys=True, indent=4))
+1 -1
pkgs/top-level/all-packages.nix
··· 6552 6552 6553 6553 bazel = bazel_7; 6554 6554 6555 - bazel_7 = callPackage ../development/tools/build-managers/bazel/bazel_7 { 6555 + bazel_7 = callPackage ../by-name/ba/bazel_7/package.nix { 6556 6556 inherit (darwin) sigtool; 6557 6557 buildJdk = jdk21_headless; 6558 6558 runJdk = jdk21_headless;