{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/37856","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/37856/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/37856/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/37856/events","html_url":"https://github.com/NixOS/nixpkgs/issues/37856","id":308528855,"number":37856,"title":"haskell.packages.ghc841.singletons doesn't build","user":{"login":"chisui","id":4526429,"avatar_url":"https://avatars1.githubusercontent.com/u/4526429?v=4","gravatar_id":"","url":"https://api.github.com/users/chisui","html_url":"https://github.com/chisui","followers_url":"https://api.github.com/users/chisui/followers","following_url":"https://api.github.com/users/chisui/following{/other_user}","gists_url":"https://api.github.com/users/chisui/gists{/gist_id}","starred_url":"https://api.github.com/users/chisui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chisui/subscriptions","organizations_url":"https://api.github.com/users/chisui/orgs","repos_url":"https://api.github.com/users/chisui/repos","events_url":"https://api.github.com/users/chisui/events{/privacy}","received_events_url":"https://api.github.com/users/chisui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-26T11:11:56Z","updated_at":"2018-03-26T11:11:56Z","closed_at":null,"author_association":"NONE","body":"## Issue description\r\n\r\n`singletons` doesn't build on unstable.\r\n\r\nThe root cause seems to be that `th-desugar` 1.7 requires `template-haskell > 2.13` but ghc-8.4.1 only  provides `template-haskell 2.13.0.0` according to [this](https://ghc.haskell.org/trac/ghc/wiki/Commentary/Libraries/VersionHistory).\r\n\r\n### Steps to reproduce\r\n\r\nrun `nix-shell -p haskell.packages.ghc841.singletons`\r\n\r\n```\r\nthese derivations will be built:\r\n  /nix/store/xwkim7v3f1yg36hs5j8llxca6nzqh66s-th-desugar-1.7.drv\r\n  /nix/store/lr6la9ff8ixplcx6qz9bl3c5d9my8p59-singletons-2.3.1.drv\r\nbuilding '/nix/store/xwkim7v3f1yg36hs5j8llxca6nzqh66s-th-desugar-1.7.drv'...\r\nsetupCompilerEnvironmentPhase\r\nBuild with /nix/store/8cdbwmwrlx4hxnpvil2ddmnk7y2bki4s-ghc-8.4.1.\r\nunpacking sources\r\nunpacking source archive /nix/store/f60z0zpj4l9ifkicb71ni3q6zr2qx2r5-source\r\nsource root is source\r\npatching sources\r\nReplace Cabal file with edited version from http://hackage.haskell.org/package/th-desugar-1.7/revision/1.cabal.\r\ncompileBuildDriverPhase\r\nsetupCompileFlags: -package-db=/tmp/nix-build-th-desugar-1.7.drv-0/package.conf.d -j1 -threaded\r\n[1 of 1] Compiling Main             ( Setup.hs, /tmp/nix-build-th-desugar-1.7.drv-0/Main.o )\r\nLinking Setup ...\r\nconfiguring\r\nconfigureFlags: --verbose --prefix=/nix/store/zc1xl30mih7gbjqif7nxnmf0s7d30ilk-th-desugar-1.7 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --docdir=/nix/store/cm7xknjiqrmpsc5z61wrrx4vy20sh8yj-th-desugar-1.7-doc/share/doc --with-gcc=gcc --package-db=/tmp/nix-build-th-desugar-1.7.drv-0/package.conf.d --ghc-option=-j1 --disable-split-objs --enable-library-profiling --profiling-detail=all-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --enable-library-vanilla --enable-library-for-ghci --ghc-option=-split-sections --extra-lib-dirs=/nix/store/s8c50k081m5xdc2lxz0dwimsnm74rlnb-ncurses-6.1/lib --extra-lib-dirs=/nix/store/7fd1hqfrw1w0csfiv3sic09dhcszgbcc-gmp-6.1.2/lib --extra-lib-dirs=/nix/store/s8c50k081m5xdc2lxz0dwimsnm74rlnb-ncurses-6.1/lib\r\nUsing Parsec parser\r\nConfiguring th-desugar-1.7...\r\nCallStack (from HasCallStack):\r\n  die', called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:958:20 in Cabal-2.2.0.0:Distribution.Simple.Configure\r\n  configureFinalizedPackage, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:462:12 in Cabal-2.2.0.0:Distribution.Simple.Configure\r\n  configure, called at libraries/Cabal/Cabal/Distribution/Simple.hs:596:20 in Cabal-2.2.0.0:Distribution.Simple\r\n  confHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:67:5 in Cabal-2.2.0.0:Distribution.Simple.UserHooks\r\n  configureAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:178:19 in Cabal-2.2.0.0:Distribution.Simple\r\n  defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:115:27 in Cabal-2.2.0.0:Distribution.Simple\r\n  defaultMain, called at Setup.hs:2:8 in main:Main\r\nSetup: Encountered missing dependencies:\r\ntemplate-haskell >=2.8 && <2.13\r\n\r\nbuilder for '/nix/store/xwkim7v3f1yg36hs5j8llxca6nzqh66s-th-desugar-1.7.drv' failed with exit code 1\r\ncannot build derivation '/nix/store/lr6la9ff8ixplcx6qz9bl3c5d9my8p59-singletons-2.3.1.drv': 1 dependencies couldn't be built\r\nerror: build of '/nix/store/lr6la9ff8ixplcx6qz9bl3c5d9my8p59-singletons-2.3.1.drv' failed\r\n```\r\n\r\n## Technical details\r\n\r\n - system: `\"x86_64-linux\"`\r\n - host os: `Linux 4.14.29, NixOS, 18.09pre133621.56fb68dcef4 (Jellyfish)`\r\n - multi-user?: `yes`\r\n - sandbox: `no`\r\n - version: `nix-env (Nix) 2.0`\r\n - channels(chisui): `\"\"`\r\n - channels(root): `\"nixos-18.09pre133621.56fb68dcef4\"`\r\n - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`\r\n"}}
{"actor":{"display_login":"chisui"}}