!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

685 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://nixos.org/manual/nixpkgs/unstable/#haskell | Current PR: https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Ahaskell-updates | Maintainer Docs: https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/HACKING.md | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | Merger Schedule: https://cloud.maralorn.de/apps/calendar/p/H6migHmKX7xHoTFa/dayGridMonth/now | Join #haskell.nix:libera.chat for question about the alternative haskell.nix infrastructure134 Servers

Load older messages


SenderMessageTime
11 Dec 2025
@maralorn:maralorn.demaralornOh, I didn’t think of that possiblity. Yes, don’t call nix from Setup.hs, please.10:24:58
@maralorn:maralorn.demaralorn btw. andromeda what are you coding for wayland? I am curious. 10:25:25
@andromeda:tchncs.deandromedaI'm working on a hobby game engine, felt writers block on the actually productive part, and decided to replace the perfectly good and battle tested GLFW-b with ffi bindings to RGFW12:09:57
@andromeda:tchncs.deandromedaand I want it to be Waylvnd native rather than accessible through wayland satellite or something12:12:52
@andromeda:tchncs.deandromedabut honestlyayland's a pan in the kiester and that could be a later addition12:13:42
@maralorn:maralorn.demaralornI'd say enjoy that you don't have a manager with a deadline and do whatever is most fun/ the greatest learning experience. 😂12:17:11
@andromeda:tchncs.deandromedawait my brain is empty - if on a non-nix distro, I need to have setup.hs do wayland bs. I can otherwise just do it from the derivation 🤦‍♀️12:25:12
@andromeda:tchncs.deandromedaI used cabal2nix to get a derivation and it builds with callPackage but I want to run a pre configure hook. How ought I go about doing that?15:53:25
@andromeda:tchncs.deandromedafound it16:33:16
@andromeda:tchncs.deandromedapreBuild16:33:24
@andromeda:tchncs.deandromeda yesss it builds, finding the wayland headers and generating the code and everything, with both nix build on a Nix system and cabal build in a Kubuntu VM (after imperatively installing deps, ofc) 16:38:12
@andromeda:tchncs.deandromedahowever, cabal build fails when in a development shell on nix - a loss I'm willing to live with for now.16:52:48
@andromeda:tchncs.deandromeda My library builds, finding Wayland on Nix and non-Nix build systems! If anyone wants to take a peek: https://git.mtgmonkey.net/Andromeda/hs-rgfw 17:21:31
@andromeda:tchncs.deandromedatoo bad it can't do much atm17:21:52
@andromeda:tchncs.deandromedaI would be so content for wayland to stop being a pain in the ass21:06:38
@andromeda:tchncs.deandromedalike so content21:06:43
@alexfmpe:matrix.orgalexfmpe iopq: https://github.com/commercialhaskell/stack/issues/6824 21:14:02
@andromeda:tchncs.deandromedaI need to link the wayland headers at build time so the header library stops freaking out about not seeing things but at the same time dynamic linking has problems on nix :(21:30:52
@andromeda:tchncs.deandromedaI'll just not do wayland fn, it's beyond my ability21:31:11
12 Dec 2025
@iopq:matrix.orgiopqyep that's the one06:06:19
@iopq:matrix.orgiopqhttps://github.com/jtt9340/aoc2025/commit/e5fdca266f62c6ac0145f17f1ba60802dfaf1698 is the solution08:42:37
@alexfmpe:matrix.orgalexfmpe been getting this sort of thing lately
WARNING: /nix/store/5sfpjqy5rbipa3mdgiwal8k7zqfq5jxh-ghc-9.6.7/lib/ghc-9.6.7/bin/./ghc-9.6.7 is loading libcrypto in an unsafe way
when building inside a shell like
nix-shell -p cabal-install ghcid haskell-language-server ghc openssl zlib pkg-config
anyone's seen this? (on unstable)
16:37:09
@alexfmpe:matrix.orgalexfmpe * been getting this sort of thing lately
WARNING: /nix/store/5sfpjqy5rbipa3mdgiwal8k7zqfq5jxh-ghc-9.6.7/lib/ghc-9.6.7/bin/./ghc-9.6.7 is loading libcrypto in an unsafe way
when building inside a shell like
nix-shell -p cabal-install ghcid haskell-language-server haskell.packages.ghc96.ghc openssl zlib pkg-config
anyone's seen this? (on unstable)
16:37:40
@alexfmpe:matrix.orgalexfmpe I see this in .cabal
extra-libraries: crypto
16:38:37
@emilazy:matrix.orgemily I bet related to that dlopen change, maybe. 16:39:06
@emilazy:matrix.orgemilysome discussion https://github.com/cl-plus-ssl/cl-plus-ssl/issues/11416:39:17
@emilazy:matrix.orgemilyI assume this is macOS.16:39:20
@alexfmpe:matrix.orgalexfmpeoops yeah aarch64-darwin16:40:51
@alexfmpe:matrix.orgalexfmpem1 specifically16:40:58
@alexfmpe:matrix.orgalexfmpehmm so the issue is likely to be from loading unversioned libcrypto?16:53:02

Show newer messages


Back to Room ListRoom Version: 6