counsel-projectile/.forgejo/install-emacs/install.sh
Maciej Szlosarczyk 9d640a49a5
Some checks failed
/ Test on 26.3 (push) Failing after 25s
/ Test on 27.2 (push) Failing after 22s
/ Test on 28.2 (push) Failing after 22s
/ Test on 29.1 (push) Failing after 21s
/ Test on snapshot (push) Failing after 21s
Valid?
2024-08-15 19:05:33 +03:00

21 lines
727 B
Bash
Executable file

#!/usr/bin/env bash
# Users should use install-nix-action if they want to customise how Nix is installed.
set -euo pipefail
if ! type -p nix &>/dev/null ; then
env INPUT_EXTRA_NIX_CONFIG= \
INPUT_INSTALL_OPTIONS= \
INPUT_INSTALL_URL= \
INPUT_NIX_PATH="nixpkgs=channel:nixos-unstable" \
INPUT_ENABLE_KVM=true \
"$(dirname "$0")"/install-nix.sh
# Make the installed Nix immediately available here
source "$GITHUB_ENV"
while IFS= read -r dir; do PATH="$dir:$PATH"; done < "$GITHUB_PATH"
fi
echo "::group::Configuring build cache and installing Emacs"
nix profile install --accept-flake-config "github:purcell/nix-emacs-ci#emacs-${INPUT_VERSION/./-}"
echo "::endgroup::"