build: add shell.nix

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-01-31 16:15:31 +01:00 committed by Malte Poll
parent b7d3f3972b
commit 51e4f23fe0
2 changed files with 11 additions and 3 deletions

3
.gitignore vendored
View File

@ -53,9 +53,6 @@ image/config.mk
# Python
__pycache__/
# Nix shells
shell.nix
# Gitpod
.gitpod.yml

11
shell.nix Normal file
View File

@ -0,0 +1,11 @@
{pkgs ? import <nixpkgs> {}}:
(pkgs.buildFHSUserEnv {
name = "bazel";
targetPkgs = pkgs: [
pkgs.bazel_6
pkgs.glibc
pkgs.gcc
pkgs.jdk11 # TODO(katexochen): investigate why our build chain doesn't work on NixOS
];
})
.env