2019-10-02 14:17:18 +00:00
|
|
|
name: 'Install Nix'
|
|
|
|
description: 'Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.'
|
2019-09-29 19:52:02 +00:00
|
|
|
author: 'Domen Kožar'
|
2020-05-14 11:21:40 +00:00
|
|
|
inputs:
|
|
|
|
install_url:
|
2021-02-20 21:46:57 +00:00
|
|
|
description: 'Installation URL that will contain a script to install Nix.'
|
|
|
|
install_options:
|
|
|
|
description: 'Additional installer flags passed to the installer script.'
|
2020-05-28 14:25:05 +00:00
|
|
|
nix_path:
|
2020-09-21 11:51:23 +00:00
|
|
|
description: 'Set NIX_PATH environment variable.'
|
2020-08-25 16:07:38 +00:00
|
|
|
extra_nix_config:
|
|
|
|
description: 'gets appended to `/etc/nix/nix.conf` if passed.'
|
2019-09-29 19:52:02 +00:00
|
|
|
branding:
|
|
|
|
color: 'blue'
|
|
|
|
icon: 'sun'
|
|
|
|
runs:
|
2022-04-08 19:33:50 +00:00
|
|
|
using: 'composite'
|
|
|
|
steps:
|
|
|
|
- run : ${{ github.action_path }}/install-nix.sh
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
INPUT_INSTALL_URL: ${{ inputs.install_url }}
|
|
|
|
INPUT_INSTALL_OPTIONS: ${{ inputs.install_options }}
|
|
|
|
INPUT_NIX_PATH: ${{ inputs.nix_path }}
|
|
|
|
INPUT_EXTRA_NIX_CONFIG: ${{ inputs.extra_nix_config }}
|