Skip to content

Commit

Permalink
Update shell nix
Browse files Browse the repository at this point in the history
  • Loading branch information
cunbidun committed Feb 17, 2024
1 parent 4360fdf commit 6bd88ad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash

set -e

# --- begin runfiles.bash initialization ---
# Copy-pasted from Bazel's Bash runfiles library (tools/bash/runfiles/runfiles.bash).
Expand Down
20 changes: 10 additions & 10 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSUserEnv {
name = "bazel-env";
targetPkgs = pkgs: [
pkgs.bazel_7
pkgs.glibc
pkgs.gcc
];
}).env
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = with pkgs.buildPackages; [
pkgs.bazel_7
pkgs.glibc
pkgs.gcc
pkgs.zulu
];
}

0 comments on commit 6bd88ad

Please sign in to comment.