Skip to content
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

stack on ghc821.ghcWithPackages is broken - Setup.hs:7:31: error Module ‘Distribution.Package’ does not export ‘PackageName(PackageName)’ #30998

Closed
freeman42x opened this issue Oct 30, 2017 · 3 comments

Comments

@freeman42x
Copy link
Contributor

Issue description

these derivations will be built:
  /nix/store/6wxnab11b3p4a415a42d02gpgm9pwx74-stack-1.5.1.drv
  /nix/store/jgknsn69myqnwgik1smi9yzi4086i7cv-ghc-8.2.1-with-packages.drv
building path(s) ‘/nix/store/7p3xcx4whj0lxf6jjd3bjwm8cik7xip4-stack-1.5.1-doc’, ‘/nix/store/n8br2srg99rmg0njsmln0pky05f8g6p2-stack-1.5.1’
setupCompilerEnvironmentPhase
Build with /nix/store/54dxprcv01z4hllcdhwqn93l4rh83sy6-ghc-8.2.1.
unpacking sources
unpacking source archive /nix/store/kxcm0cadj2g9lz9lggvh9zklgh2wg4hk-stack-1.5.1.tar.gz
source root is stack-1.5.1
setting SOURCE_DATE_EPOCH to timestamp 1501749429 of file stack-1.5.1/stack.cabal
patching sources
Replace Cabal file with edited version from http://hackage.haskell.org/package/stack-1.5.1/revision/1.cabal.
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-stack-1.5.1.drv-0/package.conf.d -j1 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /tmp/nix-build-stack-1.5.1.drv-0/Main.o )

Setup.hs:7:31: error:
    Module
    ‘Distribution.Package’
    does not export
    ‘PackageName(PackageName)’
  |
7 | import Distribution.Package ( PackageName(PackageName), PackageId, InstalledPackageId, packageVersion, packageName )
  |                               ^^^^^^^^^^^^^^^^^^^^^^^^
builder for ‘/nix/store/6wxnab11b3p4a415a42d02gpgm9pwx74-stack-1.5.1.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/jgknsn69myqnwgik1smi9yzi4086i7cv-ghc-8.2.1-with-packages.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/jgknsn69myqnwgik1smi9yzi4086i7cv-ghc-8.2.1-with-packages.drv’ failed
/run/current-system/sw/bin/nix-shell: failed to build all dependencies

Steps to reproduce

nix-shell -p "haskell.packages.ghc821.ghcWithPackages (pkgs: [pkgs.stack])"

Technical details

  • System: 17.09.1905.a0b50eab59 (Hummingbird)
  • Nix version: nix-env (Nix) 1.11.15
  • Nixpkgs version: 17.09.1905.a0b50eab59
  • Sandboxing enabled: build-use-sandbox = false
@freeman42x
Copy link
Contributor Author

Related: commercialhaskell/stack#3422

@freeman42x
Copy link
Contributor Author

This builds it fine:

nix-shell -p "haskell.packages.ghc802.ghcWithPackages (pkgs: [pkgs.stack])"

@ryantm
Copy link
Member

ryantm commented Aug 23, 2018

ghc802 is no longer on master. The default, ghc843, works.

@ryantm ryantm closed this as completed Aug 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants