Skip to content

Commit

Permalink
(chore): Installs Nix in AL2023 Buildspec (#4934)
Browse files Browse the repository at this point in the history
  • Loading branch information
maddeleine authored Dec 10, 2024
1 parent 731e8e9 commit 9622cf4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions codebuild/spec/buildspec_al2023_ktls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ phases:
- yum update -y; yum upgrade -y
pre_build:
commands:
# Nix is installed, but intentionally not setup for root, fix that
- cp -aR /home/nix/.nix-profile ~/; chown -R root /root/.nix-profile; export PATH=$HOME/.nix-profile/bin:$PATH
# (Re)Install nix
- sh <(curl -L https://nixos.org/nix/install) --no-daemon
# Make sure nix exists in the PATH
- export PATH=$HOME/.nix-profile/bin:$PATH
# Turn on flakes
- mkdir -p ~/.config/nix; echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
# Populate the store from the nix cache
Expand Down

0 comments on commit 9622cf4

Please sign in to comment.