Skip to content

Build failure: haskellPackages.base_4_20_0_1 & haskellPackages.base_4_21_0_0 ghc-internal-9.1201.0 is marked as broken #375512

Description

@malikwirin

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

Doing nix build .\#haskellPackages.base_4_21_0_0 inside the nixpkgs repo causes the failure

Can Hydra reproduce this build failure?

Please select the Hydra Status.

Link to Hydra build job

No response

Relevant log output

error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:34:12:
           33|
           34|   strict = derivationStrict drvAttrs;
             |            ^
           35|

       … while evaluating derivation 'base-4.21.0.0'
         whose name attribute is located at /nix/store/d01bqjhswxah4j34zipk1bwqpp6ydhvd-source/pkgs/stdenv/generic/make-derivation.nix:375:7

       … while evaluating attribute 'propagatedBuildInputs' of derivation 'base-4.21.0.0'
         at /nix/store/d01bqjhswxah4j34zipk1bwqpp6ydhvd-source/pkgs/stdenv/generic/make-derivation.nix:429:7:
          428|       depsHostHostPropagated      = elemAt (elemAt propagatedDependencies 1) 0;
          429|       propagatedBuildInputs       = elemAt (elemAt propagatedDependencies 1) 1;
             |       ^
          430|       depsTargetTargetPropagated  = elemAt (elemAt propagatedDependencies 2) 0;

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

       error: Package ‘ghc-internal-9.1201.0’ in /nix/store/d01bqjhswxah4j34zipk1bwqpp6ydhvd-source/pkgs/development/haskell-modules/hackage-packages.nix:122764 is marked as broken, refusing to evaluate.

       a) To temporarily allow broken packages, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_BROKEN=1

          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
                then pass `--impure` in order to allow use of environment variables.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowBroken = true; }
       in configuration.nix to override this.

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowBroken = true; }
       to ~/.config/nixpkgs/config.nix.

Additional context

I cannot find a relevant hydra job

Image

This issue is currently a blocker for MaybeJustJames/zephyr#83

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.71, NixOS, 24.11 (Vicuna), 24.11.20250114.a78c63a
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.11
  • nixpkgs: /nix/store/zdns8ch4w4ibaspjhw4qjp791lkj14z1-source

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: build failureA package fails to build2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: haskellGeneral-purpose, statically typed, purely functional programming language

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions