depot/nix/pkgs/bazel-run.nix

23 lines
516 B
Nix

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ pkgs, ... }:
let
bazelTop = pkgs.buildFHSUserEnv {
name = "bazel-wrap";
targetPkgs = pkgs: [
(pkgs.bazel.override { enableNixHacks = true; })
pkgs.adoptopenjdk-hotspot-bin-11
pkgs.zlib
pkgs.python
pkgs.curl
pkgs.nodejs
pkgs.yarn
pkgs.git
pkgs.jetbrains.idea-community
pkgs.gcc
];
};
in
bazelTop // { override = x: bazelTop; }