!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

709 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/143 Servers

Load older messages


SenderMessageTime
25 Nov 2024
@maralorn:maralorn.demaralorn
In reply to @lxsameer:matrix.org
for example, as sterni suggested I'm using ghc-pkg list to ignore some packages like rts but that cause some issues with other packages like primitive
I think the list of packages to never override is so short, that it is totally fine to maintain it manually. I guess it is base, ghc-internal, rts, ghc-experimental and template-haskell right now. Might be missing a few but not many.
14:57:10
@lxsameer:matrix.orglxsameer Thank you. I read more about hackage2nix 14:58:07
@sternenseemann:systemli.orgsterniwhat is the issue with primitive?15:17:09
@lxsameer:matrix.orglxsameer
In reply to @sternenseemann:systemli.org
what is the issue with primitive?

since it is in the ghc-pkgs list I didn't generate an override for it. But cabal throws the following error message:

       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > configureFlags: --verbose --prefix=/nix/store/g58fsvxjn69yls3bswyqwh3p6sylvcz8-integer-conversion-0.1.1 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --docdir=/nix/store/dlfskyys6c0bczndvh2
hmvmmznw8s9gf-integer-conversion-0.1.1-doc/share/doc/integer-conversion-0.1.1 --with-gcc=gcc --package-db=/build/tmp.ILQq7Ci7Lr/package.conf.d --ghc-option=-j16 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-R
TS --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --disable-tests --disable-benchmarks --enable-library-vanilla --disable-library-fo
r-ghci --enable-split-sections --enable-library-stripping --enable-executable-stripping --ghc-option=-haddock --extra-lib-dirs=/nix/store/53iigsmf32bwkfdhhihq2rppgk23k2rg-ncurses-6.4.20221231/lib --extra-lib-dirs=
/nix/store/pmf31rbzvv618qirwmzppjb63wsrl4zi-libffi-3.4.6/lib --extra-lib-dirs=/nix/store/yljlqz62v8a9brqmvib9pa4k7yanb15a-elfutils-0.191/lib --extra-lib-dirs=/nix/store/y54504sbwlbbm14hkvv48yw4smjw649c-gmp-with-cx
x-6.3.0/lib
       > Using Parsec parser
       > Configuring integer-conversion-0.1.1...
       > CallStack (from HasCallStack):
       >   withMetadata, called at libraries/Cabal/Cabal/src/Distribution/Simple/Utils.hs:368:14 in Cabal-3.10.3.0:Distribution.Simple.Utils
       > Error: Setup: Encountered missing or private dependencies:
       > primitive >=0.9.0.0 && <0.10
       >
       For full logs, run 'nix log /nix/store/rgp0ww32si0r2lr6kzj18qc4c5yhb8aa-integer-conversion-0.1.1.drv'.

15:25:33
@maralorn:maralorn.demaralornYeah, some packages from ghc=pkgs list are reinstallable.15:33:06
@sternenseemann:systemli.orgsterniprimitive is not a core library in any version, though?!15:58:23
@sternenseemann:systemli.orgsterni also, as I sad you of course have to check that the version also matches 15:58:40
@sternenseemann:systemli.orgsterni * also, as I said you of course have to check that the version also matches 15:58:50
@maralorn:maralorn.demaralornI mean you'd depending on the situation ghc-pkg list can also contain non-boot packages.17:10:02
@maralorn:maralorn.demaralorn * 17:10:14
@lxsameer:matrix.orglxsameer
In reply to @sternenseemann:systemli.org
also, as I sad you of course have to check that the version also matches
The version matches exactly
17:19:12
@sternenseemann:systemli.orgsterniyou should use an unwrapped ghc obviously17:19:40
@lxsameer:matrix.orglxsameer
In reply to @sternenseemann:systemli.org
you should use an unwrapped ghc obviously
for ghc-pkg?
18:15:47
@sternenseemann:systemli.orgsterniyes18:41:19
@alexfmpe:matrix.orgalexfmpeGoing forward, after the staging catch up, when do we target master and when haskell-updates?23:02:04
@alexfmpe:matrix.orgalexfmpeI was going to see something in ghcup, but a dep didn't build out of the box with nix-shell -p wondering where to branch from when attempting a fix23:03:25
@sternenseemann:systemli.orgsterniif the rebuilds are not expensive and it's not going to cause nightmare merge conflicts with haskell-updates you can merg into master23:25:01
@alexfmpe:matrix.orgalexfmpeI feel like we'll almost always have conflicts if overrides tend to get added at the end of configuration*.nix files23:56:15
26 Nov 2024
@sternenseemann:systemli.orgsterniwell that's the same with working on the branch—we always try to tell people to add overrides in a random place13:42:30
@alexfmpe:matrix.orgalexfmpeWorking on the branch means the PR author has to fix the conflict15:51:08
@alexfmpe:matrix.orgalexfmpeOtherwise the PR maintainer does on their merge15:51:25
@alexfmpe:matrix.orgalexfmpeAdding overrides in random places for the sake of less conflicts feels weird to me. Wouldn't sorting them lexicographically solve that?15:52:54
@sternenseemann:systemli.orgsterniyou can also do that of course yeah, but the files aren't sorted lexicographically at the moment16:21:19
@sternenseemann:systemli.orgsterniand there are good reasons to sometimes group things thematically which is done in an ad hoc fashion16:21:34
@emilazy:matrix.orgemilywe also place release notes randomly (in theory)16:23:37
@emilazy:matrix.orgemily(in practice…)16:23:39
@emilazy:matrix.orgemilythe real solution is to split things into multiple files tbh16:23:51
@emilazy:matrix.orgemilyNix is on one release note per file and NixOS will hopefully be at some point16:24:00
@emilazy:matrix.orgemilyit's marginally more Git-storage-friendly too (though packfiles complicate that)16:24:18
@sternenseemann:systemli.orgsterniwell then you have the problem with directories because the tree objects become huge at some point16:26:56

Show newer messages


Back to Room ListRoom Version: 6