|
18 | 18 |
|
19 | 19 | - name: Instala nix single user
|
20 | 20 | run: |
|
21 |
| - wget -qO- http://ix.io/4Cj0 | sh \ |
22 |
| - && . "$HOME"/."$(basename $SHELL)"rc \ |
| 21 | + BASE_URL='https://raw.githubusercontent.com/ES-Nix/get-nix/' \ |
| 22 | + && SHA256=87fa0f1dbfdd28a1f99b39d5bd4dcc39de97bc64 \ |
| 23 | + && NIX_RELEASE_VERSION='2.10.2' \ |
| 24 | + && curl -fsSL "${BASE_URL}""$SHA256"/get-nix.sh | sh -s -- ${NIX_RELEASE_VERSION} \ |
| 25 | + && . "$HOME"/.nix-profile/etc/profile.d/nix.sh \ |
| 26 | + && . ~/."$(basename $SHELL)"rc \ |
| 27 | + && export TMPDIR=/tmp \ |
23 | 28 | && nix flake --version \
|
| 29 | + && nix registry pin nixpkgs github:NixOS/nixpkgs/ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b \ |
| 30 | + && curl -fsSL https://raw.githubusercontent.com/ES-Nix/get-nix/"$SHA256"/install_direnv_and_nix_direnv.sh | sh \ |
| 31 | + && . ~/."$(basename $SHELL)"rc \ |
24 | 32 | && direnv --version
|
25 | 33 | echo "$HOME"/.nix-profile/bin >> $GITHUB_PATH
|
26 | 34 |
|
|
39 | 47 |
|
40 | 48 | - name: Instala nix single user
|
41 | 49 | run: |
|
42 |
| - wget -qO- http://ix.io/4Cj0 | sh \ |
43 |
| - && . "$HOME"/."$(basename $SHELL)"rc \ |
| 50 | + BASE_URL='https://raw.githubusercontent.com/ES-Nix/get-nix/' \ |
| 51 | + && SHA256=87fa0f1dbfdd28a1f99b39d5bd4dcc39de97bc64 \ |
| 52 | + && NIX_RELEASE_VERSION='2.10.2' \ |
| 53 | + && curl -fsSL "${BASE_URL}""$SHA256"/get-nix.sh | sh -s -- ${NIX_RELEASE_VERSION} \ |
| 54 | + && . "$HOME"/.nix-profile/etc/profile.d/nix.sh \ |
| 55 | + && . ~/."$(basename $SHELL)"rc \ |
| 56 | + && export TMPDIR=/tmp \ |
44 | 57 | && nix flake --version \
|
| 58 | + && nix registry pin nixpkgs github:NixOS/nixpkgs/ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b \ |
| 59 | + && curl -fsSL https://raw.githubusercontent.com/ES-Nix/get-nix/"$SHA256"/install_direnv_and_nix_direnv.sh | sh \ |
| 60 | + && . ~/."$(basename $SHELL)"rc \ |
45 | 61 | && direnv --version
|
46 | 62 | echo "$HOME"/.nix-profile/bin >> $GITHUB_PATH
|
47 | 63 |
|
|
67 | 83 |
|
68 | 84 | - name: Instala nix single user
|
69 | 85 | run: |
|
70 |
| - wget -qO- http://ix.io/4Cj0 | sh \ |
71 |
| - && . "$HOME"/."$(basename $SHELL)"rc \ |
| 86 | + BASE_URL='https://raw.githubusercontent.com/ES-Nix/get-nix/' \ |
| 87 | + && SHA256=87fa0f1dbfdd28a1f99b39d5bd4dcc39de97bc64 \ |
| 88 | + && NIX_RELEASE_VERSION='2.10.2' \ |
| 89 | + && curl -fsSL "${BASE_URL}""$SHA256"/get-nix.sh | sh -s -- ${NIX_RELEASE_VERSION} \ |
| 90 | + && . "$HOME"/.nix-profile/etc/profile.d/nix.sh \ |
| 91 | + && . ~/."$(basename $SHELL)"rc \ |
| 92 | + && export TMPDIR=/tmp \ |
72 | 93 | && nix flake --version \
|
| 94 | + && nix registry pin nixpkgs github:NixOS/nixpkgs/ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b \ |
| 95 | + && curl -fsSL https://raw.githubusercontent.com/ES-Nix/get-nix/"$SHA256"/install_direnv_and_nix_direnv.sh | sh \ |
| 96 | + && . ~/."$(basename $SHELL)"rc \ |
73 | 97 | && direnv --version
|
74 | 98 | echo "$HOME"/.nix-profile/bin >> $GITHUB_PATH
|
75 | 99 |
|
|
0 commit comments