nix/pkgs: add bazel-run userenv

This commit is contained in:
Luke Granger-Brown 2020-06-16 09:39:54 +01:00
parent a7945b45f9
commit f3d1fee59d
3 changed files with 21 additions and 1 deletions

19
nix/pkgs/bazel-run.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
let
bazelTop = pkgs.buildFHSUserEnv {
name = "bazel-wrap";
targetPkgs = pkgs: [
(pkgs.bazel.override { enableNixHacks = true; })
pkgs.adoptopenjdk-hotspot-bin-13
pkgs.zlib
pkgs.python
pkgs.curl
pkgs.nodejs
pkgs.yarn
pkgs.git
pkgs.jetbrains.idea-community
pkgs.gcc
];
};
in
bazelTop // { override = x: bazelTop; }

View file

@ -3,6 +3,7 @@
# SPDX-License-Identifier: Apache-2.0
args: {
bazel-run = import ./bazel-run.nix args;
javaws-env = import ./javaws-env.nix args;
plex-pass = import ./plex-pass.nix args;
secretsync = import ./secretsync args;

View file

@ -59,4 +59,4 @@ amend =
evolve =
topic =
hggit =
purge =
purge =