Skip to content

Commit

Permalink
Downgrade nixpkgs because of MacOS build error
Browse files Browse the repository at this point in the history
It seems NixOS/nixpkgs#287609 caused the following
build error for us on MacOS:

```
error:
       … while evaluating a branch condition

         at /nix/store/hxvhrj46m6j9m1x2z4qa4s1r4gw18sqv-source/pkgs/stdenv/booter.nix:99:7:

           98|     thisStage =
           99|       if args.__raw or false
             |       ^
          100|       then args'

       … in the right operand of the update (//) operator

         at /nix/store/hxvhrj46m6j9m1x2z4qa4s1r4gw18sqv-source/pkgs/stdenv/booter.nix:84:7:

           83|       { allowCustomOverrides = index == 1; }
           84|       // (stageFun prevStage))
             |       ^
           85|     (lib.lists.reverseList stageFuns);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: value is a function while a set was expected
```

We should look into if this is an issue in nixpkgs or in our MacOS
environment (GitHub).

This commit changes the following Nix versions:

  * 2.21.2 -> 2.21.0
  * 2.20.6 -> 2.20.5
  * 2.19.4 -> 2.19.3
  * 2.3.18 -> 2.3.17
  • Loading branch information
rickynils committed May 2, 2024
1 parent 0ff55bf commit 2eeac83
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
- macos-12
- macos-11
nix_version:
- 2.21.2
- 2.20.6
- 2.19.4
- 2.21.0
- 2.20.5
- 2.19.3
- 2.18.2
- 2.3.18
- 2.3.17
runs-on: ${{ matrix.os }}
steps:
- uses: divnix/nix-cache-action@v3.0.11-nix
Expand Down Expand Up @@ -92,11 +92,11 @@ jobs:
- macos-12
- macos-11
nix_version:
- 2.21.2
- 2.20.6
- 2.19.4
- 2.21.0
- 2.20.5
- 2.19.3
- 2.18.2
- 2.3.18
- 2.3.17
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -137,11 +137,11 @@ jobs:
- macos-12
- macos-11
nix_version:
- 2.21.2
- 2.20.6
- 2.19.4
- 2.21.0
- 2.20.5
- 2.19.3
- 2.18.2
- 2.3.18
- 2.3.17
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs-unstable.url = "nixpkgs/c10b1bb002e7414ecf7c9d9e5f7ebaeaeae32c92";
nixpkgs-unstable.url = "nixpkgs/276624921a196180387832713961b1b8d06ec178";
};

nixConfig = {
Expand Down

0 comments on commit 2eeac83

Please sign in to comment.