Skip to content

ghc-9.4.3:lib depends on missing build tools #1808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TeofilC opened this issue Dec 8, 2022 · 3 comments
Closed

ghc-9.4.3:lib depends on missing build tools #1808

TeofilC opened this issue Dec 8, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@TeofilC
Copy link
Contributor

TeofilC commented Dec 8, 2022

The library component of ghc-9.4.3 depends on genprimopcode and deriveConstants as build-tools, but these don't exist in the haskell.nix package set, so, it's giving me a missing package error.

I'm currently working around this by using the following module:

{ packages.ghc.components.library.build-tools = lib.mkForce [] ; }
@peterbecich
Copy link
Contributor

related to this ticket

# Avoid dependency on genprimopcode and deriveConstants (cabal does not put these in the plan,
# most likely because it finds them in the PATH).
# See https://github.com/input-output-hk/haskell.nix/issues/1808
packages.ghc.components.library.build-tools = pkgs.lib.mkForce (
pkgs.lib.optionals (__compareVersions config.hsPkgs.ghc.identifier.version "9.4.1" > 0) [
(config.hsPkgs.buildPackages.alex.components.exes.alex or pkgs.buildPackages.alex)
(config.hsPkgs.buildPackages.happy.components.exes.happy or pkgs.buildPackages.happy)
pkgs.buildPackages.ghc-extra-packages.${config.compiler.nix-name}.genprimopcode.components.exes.genprimopcode
pkgs.buildPackages.ghc-extra-packages.${config.compiler.nix-name}.deriveConstants.components.exes.deriveConstants
]);

@TeofilC
Copy link
Contributor Author

TeofilC commented Feb 12, 2023

Nice I'll check if that solves this issue

@TeofilC
Copy link
Contributor Author

TeofilC commented Feb 13, 2023

Yep looks to be fixed

@TeofilC TeofilC closed this as completed Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants