!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

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

Load older messages


SenderMessageTime
24 May 2021
@berberman:mozilla.orgberberman joined the room.12:02:42
@ncfavier:matrix.orgnf joined the room.12:45:47
@srid:matrix.orgsrid

Is anyone familiar with these linker errors on macOS?

impure path `/private/tmp/nix-build-ema-0.2.0.0.drv-0/ghc81651_0/ghc_32.filelist' used in link
...
`ld' failed in phase `Merge objects'. (Exit code: 1)

https://github.com/srid/emanote/issues/15#issuecomment-846738416

16:10:04
@benley:matrix.orgbenley joined the room.16:41:40
@srid:matrix.orgsridUser just confirmed that re-installing Nix fixed it. ^^17:25:43
@srid:matrix.orgsridMACOS!17:25:57
@pnotequalnp:matrix.orgpnotequalnpCan I easily generate a cabal freeze file based on my flake.lock? So that cabal v2 commands will use the same dependency versions as nix?17:32:11
@edwtjo:fairydust.spaceEdward Tjörnhammar joined the room.18:55:28
@carter_s:matrix.orgcarter joined the room.19:02:04
@maralorn:maralorn.demaralorn
In reply to @pnotequalnp:matrix.org
Can I easily generate a cabal freeze file based on my flake.lock? So that cabal v2 commands will use the same dependency versions as nix?
Easily? Don‘t think so. In a normal setup your flake.lock contains no information about individual Haskell dependencies only the pinned nixpkgs.
19:14:35
@maralorn:maralorn.demaralornOf course, the information does exist. And I think you might have luck to insert a sneaky "cabal freeze" command in the build phase of the package build so that you get an additional freeze file as an output of your derivation.19:16:51
@pnotequalnp:matrix.orgpnotequalnpOoh yes that sounds like a good idea.19:20:02
@bb010g:matrix.orgDusk joined the room.19:42:32
@jul1u5:matrix.orgjul1u5 removed their profile picture.20:05:12
@infinisil:matrix.orginfinisil joined the room.20:30:14
@immae:matrix.orgimmae (he/him) joined the room.22:17:08
25 May 2021
@pasukon:matrix.orgpasukon joined the room.02:53:59
@pacc6:matrix.orgpacc6 joined the room.07:41:39
@maralorn:maralorn.demaralornI don‘t get it. github has bumped this PR now twice into my notifications, since I merged it. But everytime I go there I don‘t see that anything has happened. https://github.com/NixOS/cabal2nix/pull/49510:38:55
@sternenseemann:systemli.orgsterni (he/him) cdepillabout: removed the darwin builds in staticHaskellPackages for now the libiconv failure really doesn't need to concern us 10:42:18
@sternenseemann:systemli.orgsterni (he/him)well maybe if someone has some extra time and energy10:42:31
@maralorn:maralorn.demaralornI have just disabled the hls-class-plugin check on darwin. I didn’t dare to open an upstream bug, because there are obvious steps to debug this first which I cannot do, because I don‘t have a darwin machine.11:03:21
@cdepillabout:matrix.orgcdepillabout sterni (he/him): maralorn Thanks! 11:21:19
@cdepillabout:matrix.orgcdepillabout
In reply to @maralorn:maralorn.de
I don‘t get it. github has bumped this PR now twice into my notifications, since I merged it. But everytime I go there I don‘t see that anything has happened. https://github.com/NixOS/cabal2nix/pull/495
Yeah, I got that as well. I wonder why it is happening.
11:22:35
@maralorn:maralorn.demaralornI am by the way not 100% satisfied with the result of that PR but I decided that I will not under any circumstances piss off someone who contributes docs.^^11:30:38
@cdepillabout:matrix.orgcdepillaboutYeah, that is completely understandable.11:31:35
@maralorn:maralorn.demaralornI really think that there could be gained a lot by collecting all the various blog posts people created about setting up their Haskell projects with nix and distilling the best practices in our documentation.11:32:54
@maralorn:maralorn.demaralornIt’s so crazy how often I come by some random config by someone and am like "wow, that’s a nice twist to improve your config that I hadn’t seen before".11:33:46
@cdepillabout:matrix.orgcdepillaboutI agree. The Haskell infrastructure is quite difficult to document though, given how many different ways you can use it.11:34:48
@cdepillabout:matrix.orgcdepillaboutSometimes I think about trying to write the "canonical" documentation, but I always give up after considering the scope.11:35:17

Show newer messages


Back to Room ListRoom Version: 6