NixOS / nixpkgs

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

haskellPackages.brittany is broken #85923

Closed pmiddend closed 4 years ago

pmiddend commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. nix-shell -I nixpkgs=channel:nixos-unstable -p haskellPackages.brittany

Additional context

building '/nix/store/7q09dgvlqwv122vjfclwnzlpa673d1q5-butcher-1.3.3.0.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/vhy7g5rrvsmivg7xf7s3n0n3hiq5hxv9-ghc-8.8.3.
unpacking sources
unpacking source archive /nix/store/xw6ji7727hfi1gfj1sghjj4pc0mcc9d6-butcher-1.3.3.0.tar.gz
source root is butcher-1.3.3.0
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file butcher-1.3.3.0/src/UI/Butcher/Monadic/Types.hs
patching sources
Replace Cabal file with edited version from mirror://hackage/butcher-1.3.3.0/revision/1.cabal.
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/setup-package.conf.d -j4 -threaded
copying path '/nix/store/ac30x2sxy076i00mj7qh2jlbk7dl73za-bash-interactive-4.4-p23' from 'https://cache.nixos.org'...
[1 of 1] Compiling Main             ( Setup.hs, /build/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/dd5l6ncbv04bqgjvni7d04czhdh48sd7-butcher-1.3.3.0 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/7vr7j45mcpczqvkhqkdabddv76kqzdfq-butcher-1.3.3.0-doc/share/doc/butcher-1.3.3.0 --with-gcc=gcc --package-db=/build/package.conf.d --ghc-option=-j4 --disable-split-objs --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --extra-lib-dirs=/nix/store/41wfbvck73xbrlyjy9pk9b0lw6c1pp6g-ncurses-6.2/lib --extra-lib-dirs=/nix/store/c5sxlc593sqm3qr5rfl85phsl2mwbgpd-libffi-3.3/lib --extra-lib-dirs=/nix/store/rfh8jp8gphy21kzchc6v47x6mbg9sqfq-gmp-6.2.0/lib
copying path '/nix/store/35hb71frwcrzsza8zqij7bfxq8q4bkng-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/d4am5r7cgz5vv54m5jl3y96dzsb4jrh6-conduit-1.3.2' from 'https://cache.nixos.org'...
Using Parsec parser
Configuring butcher-1.3.3.0...
CallStack (from HasCallStack):
  die', called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:1022:20 in Cabal-3.0.1.0:Distribution.Simple.Configure
  configureFinalizedPackage, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:475:12 in Cabal-3.0.1.0:Distribution.Simple.Configure
  configure, called at libraries/Cabal/Cabal/Distribution/Simple.hs:625:20 in Cabal-3.0.1.0:Distribution.Simple
  confHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:65:5 in Cabal-3.0.1.0:Distribution.Simple.UserHooks
  configureAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:180:19 in Cabal-3.0.1.0:Distribution.Simple
  defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:116:27 in Cabal-3.0.1.0:Distribution.Simple  defaultMain, called at Setup.hs:2:8 in main:Main
Setup: Encountered missing or private dependencies:
base <0 && <999

builder for '/nix/store/7q09dgvlqwv122vjfclwnzlpa673d1q5-butcher-1.3.3.0.drv' failed with exit code 1
cannot build derivation '/nix/store/hd2g3gmx3raca928gi4dg11477yh54v1-brittany-0.12.1.1.drv': 1 dependencies couldn't be built

Metadata

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
nixos-discourse commented 4 years ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixos-manager-manage-your-nixos-configuration-graphically/6685/14

cdepillabout commented 4 years ago

@pmiddend If you (or anyone else reading this) wanted to figure out what was wrong with brittany and send a PR fixing it, we would be happy to merge it in.

xaverdh commented 4 years ago

It needs butcher_1_3_3_1 (brittany.override { butcher = butcher_1_3_3_1; } builds fine)

cdepillabout commented 4 years ago

@xaverdh Please feel free to send a PR with that override.

xaverdh commented 4 years ago

Well its fixed on master anyway, since butcher was updated there.

cdepillabout commented 4 years ago

@xaverdh Thanks for letting me know.

I'll go ahead and close this since brittany is building on both haskell-updates and master currently.