Skip to content

Commit

Permalink
Merge pull request #52 from wamserma/patch-1
Browse files Browse the repository at this point in the history
replace deprecated functions
  • Loading branch information
domenkozar authored Oct 13, 2020
2 parents 28b1d88 + 8a37740 commit da67838
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/install-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ if [[ $OSTYPE =~ darwin ]]; then

# macOS needs certificates hints
cert_file=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
echo "::set-env name=NIX_SSL_CERT_FILE::$cert_file"
echo "NIX_SSL_CERT_FILE=$cert_file" >> $GITHUB_ENV
export NIX_SSL_CERT_FILE=$cert_file
sudo launchctl setenv NIX_SSL_CERT_FILE "$cert_file"
fi

# Set paths
echo "::add-path::/nix/var/nix/profiles/per-user/$USER/profile/bin"
echo "::add-path::/nix/var/nix/profiles/default/bin"
echo "/nix/var/nix/profiles/per-user/$USER/profile/bin" >> $GITHUB_PATH
echo "/nix/var/nix/profiles/default/bin" >> $GITHUB_PATH

if [[ $INPUT_NIX_PATH != "" ]]; then
echo "::set-env name=NIX_PATH::${INPUT_NIX_PATH}"
echo "NIX_PATH=${INPUT_NIX_PATH}" >> $GITHUB_ENV
fi

0 comments on commit da67838

Please sign in to comment.