Haskell in Nixpkgs/NixOS | 726 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | 146 Servers |
| Sender | Message | Time |
|---|---|---|
| 15 Nov 2024 | ||
| I was lying | 14:44:30 | |
| Itβs on unstable. All good | 14:44:36 | |
In reply to @mangoiv.:matrix.orgeh, everyone does it these days, apparently β¦ | 15:28:42 | |
In reply to @maralorn:maralorn.deI agree wholeheartedly. π | 15:35:36 | |
Would anyone be willing to run maintainers/scripts/haskell/update-cabal2nix-unstable.sh against the haskell-updates branch on nixpkgs, and PR the result?I'm trying to release the change in this PR, but it's fail to run on my machine Thanks in advance | 15:45:04 | |
| "fails to run on my machine" is very suspicious in Nix land. π | 15:59:30 | |
| It could be that haskell-updates is just in a bad state because it is based on staging currently. | 15:59:53 | |
| It's failing in the tests for redis | 16:07:10 | |
| potentially that indicates staging is broken, I can see there's a staged PR for redis | 16:07:59 | |
| Doesn't seem like a you problem. | 16:08:00 | |
| You'll have to forgive me taking a while to figure this stuff out; trying to get this package to build is my first time using Nix | 16:09:02 | |
| Yeah, probably need to wait a few days until we have haskell-updates figured out. | 16:09:25 | |
| No worries, and thanks | 16:09:45 | |
| I'll keep an eye on the branch, anything particular I could be checking? | 16:10:04 | |
| We have a PR open which you can find in the room topic here. | 17:15:34 | |
| 17 Nov 2024 | ||
| 15:44:30 | ||
| Hi all, is this channel in the NixOS matrix space? I couldn't find it there but I'm glad I found it now :) | 15:45:41 | |
| you might be in the old space β #space:nixos.org is the correct one | 15:46:10 | |
| Seems to be the one I'm in. Does this channel appear under that space for you? Or can you find it when you type "Haskell" in the space search bar? Both don't work for me. | 15:47:39 | |
| yes and it spins forever when I search respectively :) | 15:49:36 | |
| probably just Matrix being Matrix | 15:49:40 | |
| Anyway, thanks for pointing me here. Here is my question in case anyone has encountered this before or has debugging pointers: I am encountering a strange (at least for me) situation when trying to get into a Haskell dev environment with developPackages. I'm basically using this in a larger flake.nix:
The environment builds all fine when I do Did anyone encounter this issue or has ideas how to approach this? I can't even find out which configuration cabal uses and thus can't check whether it's configured to point to some nix package set ... π€ | 15:52:30 | |
| * Anyway, thanks for pointing me here. Here is my question in case anyone has seen this before or has debugging pointers: I am encountering a strange (at least for me) situation when trying to get into a Haskell dev environment with developPackages. I'm basically using this in a larger flake.nix:
The environment builds all fine when I do Did anyone encounter this issue or has ideas how to approach this? I can't even find out which configuration cabal uses and thus can't check whether it's configured to point to some nix package set ... π€ | 15:52:48 | |
| Do you have package bounds in your cabal file or a cabal.project.freeze? If yes, try to remove it | 16:35:40 | |
| Nixpkgs provides just one package set. If your version bounds donβt allow to use this set, then cabal will download what it needs. You can stop if from doing that by removing the mirrors from your cabal.config file. | 16:37:26 | |
or you set active-repositories to :none https://cabal.readthedocs.io/en/stable/cabal-project-description-file.html#cfg-field-active-repositories | 17:48:51 | |
| I don't have version bounds. But I'll try to actively stop it from downloading things. | 18:12:07 | |
In reply to @matto153:matrix.orgA good debugging approach is ghc-pkg list inside the nix shell and see whether you see all the dependencies which you want cabal not to build. | 18:38:32 | |
| 18 Nov 2024 | ||
| Does anyone know how to get PIE (Position Independent) enabled GHC runtime in Nix? I am trying to build a shared library in Haskell which would have all Haskell dependencies embedded in it, but when using that library in Rust I am getting
| 12:55:44 | |
In reply to @bitestring:matrix.orgshouldn't you enable that in your build system? | 13:11:26 | |