Skip to content

Error with isBuiltByBootstrapFilesCompiler after upgrading to latest #2062

Closed
@oscar-izval

Description

@oscar-izval

Describe the bug

I'm in the middle of bumping GHC from 9.4.5 to 9.4.7, and figured I need to update haskell.nix due to this error: error: attribute 'ghc947' missing. Tracked down the PR that added support for this version, #2031, and since it's recent enough, I went for nix flake lock --update-input haskell-nix. After doing this, which updated the nixpkgs input, I'm getting the following error:

       error: assertion '((lib).all isBuiltByBootstrapFilesCompiler (with prevStage; [ (autoconf) (automake) 
(bash) (binutils-unwrapped) (bison) (brotli) (cmake) (cpio) (curl) (cyrus_sasl) (db) (ed) (expat) (flex)
(gettext) (gmp) (groff) (icu) (libedit) (libffi) (libiconv) (libidn2) (libkrb5) (libssh2) (libtool) (libunistring) 
(libxml2) (m4) (ncurses) (nghttp2) (ninja) (openldap) (openssh) (openssl) (patchutils) (pbzx) (perl) 
((pkg-config).pkg-config) (python3) (python3Minimal) (scons) (serf) (sqlite) (subversion) (texinfo) 
(unzip) (which) (xz) (zlib) (zstd) ]))' failed

       at /nix/store/75yg5df22m25b8pk2qmw843ydnbl0rsk-source/pkgs/stdenv/darwin/default.nix:545:5:

          544|
          545|     assert lib.all isBuiltByBootstrapFilesCompiler (with prevStage; [
             |     ^
          546|       autoconf automake bash binutils-unwrapped bison brotli cmake cpio curl cyrus_sasl db

After doing some git blameing, I got to this PR in the nixpkgs repo: NixOS/nixpkgs#240433, which seems to have added an extra check since we last updated haskell.nix. This is preventing us from moving forward with the update, so the question is:

  • How can I provide versions of these packages that pass the assertion? or
  • How can I ignore this error?

System info

  • Build system: x86_64-darwin
  • GHC version: ghc945 -> ghc947
  • Haskell.nix version (or commit) used: ef09c9687d2f66bd8f5e226acaaf3f85af9b24cc

Steps To Reproduce

I'm working on limited context here, since I'm not the one who set this up, but I guess it all comes down to bumping haskell.nix from 78a275df052dc0c26a5f54ed833a0ecadd147e87, our current version, to whatever the latest is when you are reading this.

Expected behavior

I'd expect that after the update, haskell.nix would simply be able to get the ghc947 attribute.

Additional context

I'd be more than happy to provide any extra info needed to get this fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions