depot/nix/pkgs/bazel-run.nix

23 lines
566 B
Nix
Raw Normal View History

2020-10-04 00:08:07 +00:00
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ 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; })
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
] ++ lib.optional (system == "x86_64-linux") pkgs.jetbrains.idea-community;
2020-06-16 08:39:54 +00:00
};
in
bazelTop // { override = x: bazelTop; }