!RbXGJhHMsnQcNIDFWN:nixos.org

Nix Haskell

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

Load older messages


SenderMessageTime
18 Oct 2024
@b:chreekat.netchreekatlol yeah08:41:31
@b:chreekat.netchreekatI remember at the time there was talk about having hackage "overlays". I actually thought it was kind of a neat idea. Stackage could be an overlay. But the "curated Hackage" could also be an overlay -- rather than the assumed default08:45:37
@b:chreekat.netchreekatJust idle talk at this point08:46:37
@sternenseemann:systemli.orgsterni
In reply to @b:chreekat.net
this has existed for a long time. It's Stackage. :)
idk I use stackage in the way it shouldn't i have too loose bounds and try to fix build errors when they occur in stackage instead of bit by bit loosening them :p
09:23:50
@sternenseemann:systemli.orgsterni Alex: figured out 8.10.7 riscv64 cross :) 09:24:42
@fgaz:matrix.orgfgaz I'm trying to build a project that depends on ghcjs-base with the js backend. I put ghcjs-base in executableHaskellDepends and called the package with pkgsCross.ghcjs.haskell.packages.ghc98.callPackage. However, the derivation contains no reference to ghcjs-base and the build fails with "Encountered missing or private dependencies: ghcjs-base". Is this a known issue? I couldn't find any nixpkgs ticket about this. 12:20:50
@fgaz:matrix.orgfgaz I just tried to build some packages that depend on ghcjs-base (for example pkgsCross.ghcjs.haskell.packages.ghc98.ghcjs-promise) and they all have the same issue. 12:24:03
@fgaz:matrix.orgfgaz Apparently pkgsCross.ghcjs.haskell.packages.ghc98.ghcjs-base is null, despite it being defined in hackage-packages.nix 12:31:38
@fgaz:matrix.orgfgaz * Apparently pkgsCross.ghcjs.haskell.packages.ghc98.ghcjs-base is null, despite it being defined in hackage-packages.nix. And so is haskellPackages.ghcjs-base. 12:40:42
@alexfmpe:matrix.orgalexfmpeIs ghcjs-base even a thing on new js backend?12:43:23
@alexfmpe:matrix.orgalexfmpeWasn't that bundled with old ghcjs?12:44:23
@maralorn:maralorn.demaralorn
In reply to @fgaz:matrix.org
Apparently pkgsCross.ghcjs.haskell.packages.ghc98.ghcjs-base is null, despite it being defined in hackage-packages.nix. And so is haskellPackages.ghcjs-base.
Packages which are bundled with ghc get set to null in the configuration-ghc-x.y.nix file. Because they usually get compiled within and are provided from within the ghc build.
12:46:23
@maralorn:maralorn.demaralornThe fact that we even bother to set it to null makes me think that it still plays a role on the new backend, but I could be wrong.12:47:04
@maralorn:maralorn.demaralornMaybe that is simply a mistake and ghcjs-base does not exist for the new backend. Maybe you can find the person to ask by a blame on the override which sets it to null.12:48:04
@fgaz:matrix.orgfgazI don't think ghcjs-base is bundled in ghc. ghcjs-prim is.12:48:34
@maralorn:maralorn.demaralornhuh, I can’t find that override.12:48:55
@fgaz:matrix.orgfgazsame, that's why I'm confused12:49:21
@maralorn:maralorn.demaralornBut still there are overrides for ghcjs-base in the ghcjs-9.x.nix file.12:49:27
@maralorn:maralorn.demaralorn By alexfmpe 😄 12:50:00
@maralorn:maralorn.demaralornYou have to know what’s up, you did it. 😄12:50:12
@fgaz:matrix.orgfgazoh but i'm looking in a newer checkout12:50:16
@fgaz:matrix.orgfgazaha, looks like it was recently fixed. it didn't get to the channels yet12:50:44
@fgaz:matrix.orgfgazAt least I think it was fixed... I'll know after I build ghcjs... again12:51:51
@fgaz:matrix.orgfgaz* oh but i'm looking at a newer checkout, while before I was trying to build with the latest nixpkgs-unstable12:54:51
@fgaz:matrix.orgfgaz * oh but i'm looking at a newer checkout, while before I was trying to build with the latest nixpkgs-unstable edit: nixos-23.05. NIX_PATH mistakes were made ^_^" 13:42:12
@fgaz:matrix.orgfgaz * aha, looks like it was recently fixed. it didn't get to the channels yet 13:42:40
@fgaz:matrix.orgfgaz * oh but i'm looking at a newer checkout, while before I was trying to build with the latest nixpkgs-unstable edit: nixos-24.05. NIX_PATH mistakes were made ^_^" 13:42:55
@alexfmpe:matrix.orgalexfmpe
In reply to @maralorn:maralorn.de
You have to know what’s up, you did it. 😄
That whole PR spree turned into a blur in my memory by now
14:46:16
@maralorn:maralorn.demaralorncompletely understandable15:20:15
@sternenseemann:systemli.orgsterni Alex: https://github.com/NixOS/nixpkgs/pull/349570 16:19:00

Show newer messages


Back to Room ListRoom Version: 6