Skip to content

Commit

Permalink
Support new Nix 2.14 profile PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Mar 1, 2023
1 parent b15708f commit 141a14f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
nix_path: nixpkgs=channel:nixos-20.03
- run: nix-env -iA cachix -f https://cachix.org/api/v1/install
- run: cat /etc/nix/nix.conf
- run: ls -la ~/.nix-profile/bin
# cachix should be available and be able to configure a cache
- run: cachix use cachix
- run: nix-build test.nix
Expand Down
2 changes: 2 additions & 0 deletions install-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ fi
# Set paths
echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
echo "/nix/var/nix/profiles/per-user/$USER/profile/bin" >> "$GITHUB_PATH"
# new path for nix 2.14
echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH"

if [[ $INPUT_NIX_PATH != "" ]]; then
echo "NIX_PATH=${INPUT_NIX_PATH}" >> "$GITHUB_ENV"
Expand Down

0 comments on commit 141a14f

Please sign in to comment.