!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

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

Load older messages


SenderMessageTime
21 Mar 2025
@dmjio:matrix.org@dmjio:matrix.orgI rely on this pkg01:22:54
@mombaby:matrix.org@mombaby:matrix.org joined the room.04:12:37
@emilazy:matrix.orgemily wrong channel? but nixops is basically unmaintained 11:02:22
@emilazy:matrix.orgemily the nixops-aws build was broken and also relied on packages that were removed (after it was already broken) 11:02:39
@emilazy:matrix.orgemilysee the warning on https://github.com/NixOS/nixops?tab=readme-ov-file#nixops11:02:49
@emilazy:matrix.orgemily I think the rewrite is not really production-ready either, you'd probably want to look at deploy-rs or colmena 11:03:09
@emilazy:matrix.orgemilybut those do not have deep provider integration, you might have to supplement with something like Terraform or Pulumi11:03:50
@domenkozar:matrix.orgDomen Kožar changed their profile picture.11:39:36
@dmjio:matrix.org@dmjio:matrix.orgYea true, but it's been that way for a while... its still so good because its all Nix (imo). I will try the NixOS channel. Might just pin to an old hash in the meantime. Thank you for context.15:06:56
22 Mar 2025
@mombaby:matrix.org@mombaby:matrix.org left the room.05:40:43
@thomie:matrix.orgthomie joined the room.18:48:24
23 Mar 2025
@iampyu:matrix.org@iampyu:matrix.org left the room.15:18:07
24 Mar 2025
@eisfunke:eisfunke.com@eisfunke:eisfunke.com changed their display name from Nicolas Lenz to Nicolas.13:41:00
27 Mar 2025
@hellwolf:matrix.orghellwolfbeen a little quiet this week here... may I ask when can we expect nixpkgs Haskell to 9.8?12:24:07
@maralorn:maralorn.demaralornWell, it’s ready when it’s ready. 😄12:33:18
@maralorn:maralorn.demaralornI think we can do it soon.12:33:55
@maralorn:maralorn.demaralornBut I don’t think there is any progress being made because no one has time for it.12:34:32
@maralorn:maralorn.demaralorn* But I don’t think there is any progress being made because no one has time for it, currently.12:34:40
@maralorn:maralorn.demaralornI will try to get to it.12:40:33
@hellwolf:matrix.orghellwolfwhat's the good-to-go signal? I am looking at https://github.com/cdepillabout/nix-haskell-updates-status12:42:33
@hellwolf:matrix.orghellwolf

"""
🔴 Branch not mergeable

mergeable jobset failed.
maintained jobset failed.

"""

I guess this is the no-go reason?

12:43:02
@maralorn:maralorn.demaralornYes12:46:51
28 Mar 2025
@bowuigi---now-more-based:kde.org@bowuigi---now-more-based:kde.org left the room.17:46:26
@nakibrayane:matrix.orgRayane Nakib (ريّان نقيب) changed their display name from Rayane Nakib (ريان نقيب) to Rayane Nakib (ريّان نقيب).22:51:53
30 Mar 2025
@a12l:matrix.orga12lI'm currently doing Exercism's Haskell exercises. They use stack (lts-20.18) for setting up dependencies etc. What's the best way to integrate it with Nix? If it's possible I simple want some tool that automatically download and install the correct version of GHC, HLS, and the dependencies for the project15:54:45
@a12l:matrix.orga12lEach Exercise is small, so I want to do minimal amount of time and space to setup the toolchain for that exercise. 15:56:07
@a12l:matrix.orga12lIf I'd GHCUp it looks like it would work flawlessly, but from what I gather it doesn't work on NixOS?15:59:38
@alex:tunstall.xyzAlex
In reply to @a12l:matrix.org
If I'd GHCUp it looks like it would work flawlessly, but from what I gather it doesn't work on NixOS?

Unless it does something special on NixOS (I know modern Stack does), the GHC binaries that ghcup downloads are almost certainly dynamically linked and for that reason alone will not work.

Only fully statically linked executables work as-is on NixOS because they don't hardcode assumptions about how files are organised on the host.

GHC does more though: it needs to execute a C compiler and AFAIK that compiler cannot live in the same executable. Most NixOS systems don't have any C compiler installed in an easy-to-find location.

16:50:53
@alex:tunstall.xyzAlex
In reply to @a12l:matrix.org
I'm currently doing Exercism's Haskell exercises. They use stack (lts-20.18) for setting up dependencies etc. What's the best way to integrate it with Nix? If it's possible I simple want some tool that automatically download and install the correct version of GHC, HLS, and the dependencies for the project

Have you tried using Stack on NixOS? It might just work. I'm not sure.

You should get Stack from Nixpkgs, not from ghcup.

16:52:47
@a12l:matrix.orga12l

My current setup is having added

environment.systemPackages =
  [
    pkgs.ghc
    pkgs.cabal-install
    pkgs.haskell-language-server
    pkgs.haskellPackages.hlint
    pkgs.stack
  ];

in my NixOS config. When I run the tests by executing stack test in the exercise dir everything seems to work, it runs the test with GHC 9.2 (I've 9.6 globally installed) with dependencies.

But from what I understand, I've HLS compiled against my globally installed GHC version (9.6) instead of the one used in the project (9.2). Not 100 percent sure about that. Does HLS need to be specified in some stack file for it to installed?

17:35:18

Show newer messages


Back to Room ListRoom Version: 6