Skip to content

Commit

Permalink
bazelisk-env: fix python build
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Sep 9, 2024
1 parent 95293b1 commit ff34d26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion os/bazelisk/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ BASE=$(git rev-parse --show-toplevel)
incus launch images:nixos/unstable bazelisk -c security.nesting=true
incus config device add bazelisk nixos-common disk "source=$BASE" "path=/etc/nixos"
sleep 10s # allow it some time to boot
incus exec bazelisk -- nix shell --extra-experimental-features "nix-command flakes" nixpkgs#git --command git config --global --add safe.directory /etc/nixos || true
incus exec bazelisk -- nix shell --extra-experimental-features "nix-command flakes" nixpkgs#git --command git config --global --add safe.directory /etc/nixos
incus exec bazelisk -- nix shell --extra-experimental-features "nix-command flakes" nixpkgs#git --command git config --global --add safe.directory /etc/nixos/.git
incus exec bazelisk -- nix shell --extra-experimental-features "nix-command flakes" nixpkgs#git --command nixos-rebuild switch --flake /etc/nixos#bazelisk || true
bash reset.sh
incus restart bazelisk
2 changes: 2 additions & 0 deletions pkgs/bazelisk-env/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ buildFHSUserEnv {
# everything that we need both 64bit and 32bit versions of
multiPkgs = pkgs: with pkgs; [
zlib
# for python3 build
libxcrypt-legacy
];

profile = ''
Expand Down

0 comments on commit ff34d26

Please sign in to comment.