2020-10-04 00:08:07 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-04-13 12:03:56 +00:00
|
|
|
{ pkgs, lib, system, ... }:
|
2020-06-16 08:39:54 +00:00
|
|
|
let
|
|
|
|
bazelTop = pkgs.buildFHSUserEnv {
|
|
|
|
name = "bazel-wrap";
|
|
|
|
targetPkgs = pkgs: [
|
|
|
|
(pkgs.bazel.override { enableNixHacks = true; })
|
2021-03-26 03:52:35 +00:00
|
|
|
pkgs.adoptopenjdk-hotspot-bin-11
|
2020-06-16 08:39:54 +00:00
|
|
|
pkgs.zlib
|
|
|
|
pkgs.python
|
|
|
|
pkgs.curl
|
|
|
|
pkgs.nodejs
|
|
|
|
pkgs.yarn
|
|
|
|
pkgs.git
|
|
|
|
pkgs.gcc
|
2022-04-13 12:03:56 +00:00
|
|
|
] ++ lib.optional (system == "x86_64-linux") pkgs.jetbrains.idea-community;
|
2020-06-16 08:39:54 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
bazelTop // { override = x: bazelTop; }
|