Haskell in Nixpkgs/NixOS | 719 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | 144 Servers |
| Sender | Message | Time |
|---|---|---|
| 31 Mar 2025 | ||
I think there is quite a few packages in nixpkgs that use doctest. The I know off the top of my head is termonad, which uses cabal-doctest. Maybe you could look at exactly what cabal-doctest is doing, and try to emulate it within your derivation? | 11:33:19 | |
| a12l: Are you sure the "No space left on device" is not a problem with your system? | 11:36:40 | |
| It makes sense because the build get’s bigger with the overrides that you mention. | 11:37:00 | |
| Yeah, overrideAttrs is wrong and doesn’t even throw an error, so it is a no-op. | 11:38:10 | |
| Is it possible my /tmp (tmpfs) that gets filled? For I've > 75GB left on my SSD, and I hope more than that isn't necessary? | 11:38:24 | |
| I guess so. | 11:39:21 | |
| Guess I'll have to move my /tmp to my regular fs. I'll come back later today with the results :) | 11:44:00 | |
| That’s annoying. | 11:45:18 | |
you can set the Nix build-dir setting | 14:26:54 | |
Thanks – you’ve reminded me why my code is the way it is. I currently use cabal-doctest, but sol suggested I change it to use the more “official” way to run it. And getting rid of 75 loc per package seemed like a good reason to. But a major reason I use cabal-doctest is so my doctests are run in the Nixpkgs derivations, which I have much less control over than the derivations in my repo. I think the only reasonable way to avoid it would be if cabal2nix itself accepted some way to run doctest explicitly. At least all that boilerplate is generated code – I generally don’t have to think about it. | 15:09:37 | |
| 16:02:58 | ||
| @sternenseemann:systemli.org what would be my route to getting GHC on aarch64 musl in Nixpkgs, ideally relatively soon? They have binaries for 6.8 but nothing older, and my previous strategy of just avoiding anything with a pandoc input is getting more and more difficult. | 16:04:42 | |
| I've
in
| 19:55:35 | |
| Doesn't seem that HLS for 9.2 is available in my $PATH? | 19:55:51 | |
| Can you do an ls on the output of the derivation? | 20:51:10 | |
In reply to @a12l:matrix.org
This is probably why. You need | 21:29:12 | |
maralorn, Alex It seems that haskell-language-server-9.2.8 is in my $PATH when I try to autocomplete in the terminal. | 21:58:21 | |
May be that. But why do I need to specify 927? Why doesn't 928 show up when I run haskell-language-server-wrapper when 966 shows up? | 21:59:56 | |
In reply to @qyliss:fairydust.space Have you tried getting it through IIRC | 22:00:52 | |
In reply to @a12l:matrix.orgBecause 92 means "the latest available revision of 9.2" and that happens to be 9.2.8, not 9.2.7.For 96, 9.6.6 is the latest revision in Nixpkgs so that's what you get. | 22:02:24 | |
I understand why you get 9.2.8 when you specify 92, but why does 9.6.6 show up when running haskell-language-server-wrapper and not 9.2.8? In that project 9.2.8 is more correct that 9.6.6 | 22:05:22 | |
| I don't think it's chosen to use either version? HLS needs the exact same version as the compiler, so the wrapper gave up altogether when it failed to find a HLS for 9.2.7. | 22:06:51 | |
| * I don't think it has chosen to use either version? HLS needs the exact same version as the compiler, so the wrapper gave up altogether when it failed to find a HLS for 9.2.7. | 22:06:58 | |
| 1 Apr 2025 | ||
| 00:19:59 | ||
| Hey, I'm using NixOS & Cabal & GHC 9.12.1. I want to utilize hmatrix-gls (0.19.0.1). But cabal new-build all --preference="Cabal >= 3.14.1.1" --keep-going --enable-debug-info=3 inside of nix develop --impure --expr 'with import <nixpkgs> {}; mkShell rec { buildInputs = [pkg-config zlib blas lapack gsl]; LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;}' leads to <no location info>: error: …/libgsl.so: undefined symbol: cblas_ctrmv. Any idea? Thx in advance! | 00:52:19 | |
Among other things, I've tried to (1) utilize openblas instead of blas and to (2) link dynamically by shared: True↵executable-dynamic: True. | 00:52:56 | |
| 00:57:46 | ||
| 01:03:16 | ||
| 01:03:44 | ||
In reply to @alex:tunstall.xyzThat's what I'm doing. It is not cross compiled. | 07:09:44 | |