Skip to content

Commit 31acd00

Browse files
authored
Merge pull request travis-ci#1987 from grahamc/patch-1
Nix: Note the `nix:` option
2 parents 5d3cb48 + fab4446 commit 31acd00

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

user/languages/nix.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,16 @@ The following command line tools are available in the Nix environment:
4646

4747
## Default Nix Version
4848

49-
This installs the current version of Nix using https://nixos.org/nix/install. In the future, it may be possible to configure different versions with `.travis.yml`.
49+
This installs Nix 2.0.4 using [https://nixos.org/releases/nix/nix-2.0.4/install](https://nixos.org/releases/nix/nix-2.0.4/install). You may specify a different version of Nix installer with the `nix:` key in your `.travis.yml`:
50+
51+
```yaml
52+
language: nix
53+
nix: 2.0.4
54+
```
55+
{: data-file=".travis.yml"}
56+
57+
58+
> Note: at this time not all versions of Nix will successfully install, and you can only specify a specific version equal to or greater than 2.0.4.
5059

5160
## Default Target
5261

0 commit comments

Comments
 (0)