NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.95k stars 13.97k forks source link

haskell-docs has wrong dependency on haddock-api #27864

Open ivan-m opened 7 years ago

ivan-m commented 7 years ago

Issue description

In nixpkgs, haskell-docs depends on the latest version of haddock-api; even though the version of haddock-api it successfully builds with on strongly depends on the version of GHC used.

haddock-api-2.18.1 now seems to be available, but haskell-docs needs 2.17.* for GHC 8.0.*, 2.16.* for 7.10.* and 2.15.* for 7.8.4 (which was when haddock split).

Steps to reproduce

$ nix-env -iA nixpkgs.haskellPackages.haskell-docs
installing ‘haskell-docs-4.2.7’
these derivations will be built:
  /nix/store/npjb0l65c0v817p4j04dsypf9z1nn4r2-haddock-api-2.18.1.drv
  /nix/store/33cz0g2vlzy91xa4sai585plv4k44akq-haskell-docs-4.2.7.drv
these paths will be fetched (1.94 MiB download, 23.84 MiB unpacked):
  /nix/store/bz8z54i3gsw5mrz8pz2frfmrx3a5jkpz-cryptonite-0.21
  /nix/store/dqr5ahvqkz76gplvgr8815vhkdg6klxm-cryptohash-0.11.9
fetching path ‘/nix/store/bz8z54i3gsw5mrz8pz2frfmrx3a5jkpz-cryptonite-0.21’...
building path(s) ‘/nix/store/byzaxkdwacc2sbgihp0gynx2zbcirr5l-haddock-api-2.18.1’

*** Downloading ‘https://cache.nixos.org/nar/12f44pf48hyvqvjaq25rlpz8x7wxzsrqrs9ck2b1l63mydczdb14.nar.xz’ (signed by ‘cache.nixos.org-1’) to ‘/nix/store/bz8z54i3gsw5mrz8pz2frfmrx3a5jkpz-cryptonite-0.21’...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0setupCompilerEnvironmentPhase
Build with /nix/store/iy783h33w3grxlay4azx0snny9y351ck-ghc-8.0.2.
unpacking sources
unpacking source archive /nix/store/mz6gvy41vb2xlmiwyf5zscddbldjb15f-haddock-api-2.18.1.tar.gz
source root is haddock-api-2.18.1
setting SOURCE_DATE_EPOCH to timestamp 1500540397 of file haddock-api-2.18.1/test/Spec.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/tmp/nix-build-haddock-api-2.18.1.drv-0/package.conf.d -j1 -threaded
[1 of 1] Compiling Main             ( Setup.lhs, /private/tmp/nix-build-haddock-api-2.18.1.drv-0/Main.o )
Linking Setup ...
100 1820k  100 1820k    0     0   679k      0  0:00:02  0:00:02 --:--:--  679k

fetching path ‘/nix/store/dqr5ahvqkz76gplvgr8815vhkdg6klxm-cryptohash-0.11.9’...
configuring
configureFlags: --verbose --prefix=/nix/store/byzaxkdwacc2sbgihp0gynx2zbcirr5l-haddock-api-2.18.1 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=clang --package-db=/private/tmp/nix-build-haddock-api-2.18.1.drv-0/package.conf.d --ghc-option=-optl=-Wl,-headerpad_max_install_names --ghc-option=-j1 --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-library-vanilla --enable-executable-dynamic --enable-tests --extra-include-dirs=/nix/store/b6ll5iicpyags3j9akx25bynm2hqr9sj-libc++-4.0.1/include --extra-lib-dirs=/nix/store/b6ll5iicpyags3j9akx25bynm2hqr9sj-libc++-4.0.1/lib
Setup: haddock-api.cabal: This package requires at least Cabal version 2.0
builder for ‘/nix/store/npjb0l65c0v817p4j04dsypf9z1nn4r2-haddock-api-2.18.1.drv’ failed with exit code 1
killing process 55536
cannot build derivation ‘/nix/store/33cz0g2vlzy91xa4sai585plv4k44akq-haskell-docs-4.2.7.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/33cz0g2vlzy91xa4sai585plv4k44akq-haskell-docs-4.2.7.drv’ failed

Technical details

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.