NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.99k stars 14.01k forks source link

haskell.compiler.ghcjs has a broken dependency #166553

Closed sternenseemann closed 2 years ago

sternenseemann commented 2 years ago

Describe the bug

As a fallout of the migration to GHC 9.0.2 webdriver got marked as broken, as it failed to build with GHC 9.0.2 and the Stackage LTS 19 package set we now have. It would be necessary to investigate if ghcjs survived this (i.e. if it still builds) and if not to get it to work again.

nix-instantiate -A haskell.compiler.ghcjs
error: Package ‘webdriver-0.9.0.1’ in /home/lukas/src/nix/nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix:292014 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: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+
 (Flake) command, `--impure` must be passed in order to read this
 environment variable.

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.

(use '--show-trace' to show detailed location information)

Notify maintainers

cc @dfordivam @obsidian-systems-maintenance

sternenseemann commented 2 years ago

https://github.com/kallisti-dev/hs-webdriver/pull/183

sternenseemann commented 2 years ago

haskell.compiler.ghcjs should compile again. The bootstrap ghcjs is additionally built by Hydra, so only the GHC bundled libraries will need to be compiled (which is an improvement to before at least).