mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
buildBazelPackage: make bazel explicit
This commit is contained in:
parent
f203bcdff1
commit
619ba04b87
@ -1,16 +1,11 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, bazel
|
|
||||||
, cacert
|
, cacert
|
||||||
, lib
|
, lib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
bazelPkg = bazel;
|
|
||||||
in
|
|
||||||
|
|
||||||
args@{
|
args@{
|
||||||
name ? "${args.pname}-${args.version}"
|
name ? "${args.pname}-${args.version}"
|
||||||
, bazel ? bazelPkg
|
, bazel
|
||||||
, bazelFlags ? []
|
, bazelFlags ? []
|
||||||
, bazelBuildFlags ? []
|
, bazelBuildFlags ? []
|
||||||
, bazelTestFlags ? []
|
, bazelTestFlags ? []
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, bazel_3
|
||||||
, buildBazelPackage
|
, buildBazelPackage
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, python
|
, python
|
||||||
@ -45,6 +46,8 @@ let
|
|||||||
tensorflow
|
tensorflow
|
||||||
];
|
];
|
||||||
|
|
||||||
|
bazel = bazel_3;
|
||||||
|
|
||||||
bazelTarget = ":pip_pkg";
|
bazelTarget = ":pip_pkg";
|
||||||
|
|
||||||
fetchAttrs = {
|
fetchAttrs = {
|
||||||
|
@ -4803,9 +4803,6 @@ self: super: with self; {
|
|||||||
|
|
||||||
jaxlib-build = callPackage ../development/python-modules/jaxlib rec {
|
jaxlib-build = callPackage ../development/python-modules/jaxlib rec {
|
||||||
inherit (pkgs.darwin) cctools;
|
inherit (pkgs.darwin) cctools;
|
||||||
buildBazelPackage = pkgs.buildBazelPackage.override {
|
|
||||||
stdenv = if stdenv.isDarwin then pkgs.darwin.apple_sdk_11_0.stdenv else stdenv;
|
|
||||||
};
|
|
||||||
# Some platforms don't have `cudaSupport` defined, hence the need for 'or false'.
|
# Some platforms don't have `cudaSupport` defined, hence the need for 'or false'.
|
||||||
cudaSupport = pkgs.config.cudaSupport or false;
|
cudaSupport = pkgs.config.cudaSupport or false;
|
||||||
IOKit = pkgs.darwin.apple_sdk_11_0.IOKit;
|
IOKit = pkgs.darwin.apple_sdk_11_0.IOKit;
|
||||||
|
Loading…
Reference in New Issue
Block a user