static-haskell-nix icon indicating copy to clipboard operation
static-haskell-nix copied to clipboard

Update packages from 23.05 to 23.11

Open jonathanlking opened this issue 1 year ago • 2 comments

Updates nixpkgs to 23.11.

  • nix build --impure --expr '(import ./survey { useArchiveFilesForTemplateHaskell = true; }).working'
  • nix build --impure --expr '(import ./survey { }).working'

Completely succeed.

  • nix build --impure --expr '(import ./survey { compiler = "ghc963"; }).working' succeeds except for:
    • ShellCheck and stack (transitively) fail to build due to mtl < 2.3.
    • darcs fails due to unix <2.8.

jonathanlking avatar Jan 01 '24 23:01 jonathanlking

Unfortunately the GHC 9.6 releases with enableShared = false, which is set through useArchiveFilesForTemplateHaskell = true, are still broken. I think this could be the same issue as https://github.com/NixOS/nixpkgs/issues/208959#issuecomment-1646098256?

$ nix build --impure --expr '(import ./survey { compiler = "ghc963"; useArchiveFilesForTemplateHaskell = true; }).haskellPackages.ghc'
...
/---------------------------------------------------------\
| Successfully built program 'hp2ps' (Stage1).            |
| Executable: _build/stage1/bin/hp2ps                     |
| Program synopsis: Heap Profile to PostScript converter. |
\---------------------------------------------------------/
| Run Ghc CompileHs Stage1: libraries/ghc-bignum/src/GHC/Num/Backend/Native.hs => _build/stage1/libraries/ghc-bignum/build/GHC/Num/Backend/Native.p_o
| Copy package 'ghc-prim'
# cabal-copy (for _build/stage1/lib/package.conf.d/ghc-prim-0.10.0.conf)
inished in 8m29s^GError, rule finished running but did not produce file:
  _build/stage1/lib/x86_64-linux-ghc-9.6.3/libHSrts-1.0.2-ghc9.6.3.so
Build failed.

GHC 9.8.1 does seem to work though, i.e. nix build --impure --expr '(import ./survey { compiler = "ghc981"; useArchiveFilesForTemplateHaskell = true; }).haskellPackages.ghc'.

jonathanlking avatar Jan 02 '24 00:01 jonathanlking

cc @nh2

domenkozar avatar Jan 23 '24 21:01 domenkozar