!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/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org145 Servers

Load older messages


SenderMessageTime
16 May 2025
@alexfmpe:matrix.orgalexfmpeeh? tuples?16:31:58
@alexfmpe:matrix.orgalexfmpe I mean it's not a big deal either way
the specific package I wanted to move from broken to android-only is android-activity
I don't expect anyone to try and build for non-android so in a way it can probably just be removed from the list
but then hydra will just add it back
16:35:26
@alexfmpe:matrix.orgalexfmpeif doing it rightTM is a lot of work right now, maybe I just manually unmarkBroken conditional on aarch64-android ?16:35:47
@alexfmpe:matrix.orgalexfmpein configuration-arm.nix or something16:36:06
17 May 2025
@wildwestrom:nitro.chatwildwestrom joined the room.02:44:46
@wildwestrom:nitro.chatwildwestromHey all, I'm trying to build this project https://github.com/lamdu/lamdu on NixOS, but no matter what I try, it just refuses to build. Every time it's a different error. I'm looking for ideas on how I can get this thing to build.02:47:26
@phanirithvij:matrix.orgloudgolemMaybe post what you have so far05:19:01
@phanirithvij:matrix.orgloudgolemIn a git repo or gist or a pastebin05:19:24
@wildwestrom:nitro.chatwildwestromI've got a PR for it here: https://github.com/lamdu/lamdu/pull/24106:04:16
@wildwestrom:nitro.chatwildwestromhttps://github.com/wildwestrom/lamdu/tree/fix-nix-build06:05:06
@wildwestrom:nitro.chatwildwestromHere's where it's stuck at at the moment. https://pastebin.com/FnX2TdPM06:11:30
@cdepillabout:matrix.orgcdepillabout
tar: */primitive/0.9.1.0/primitive.json: Not found in archive

It looks like you're using an all-cabal-hashes without that given version of primitive. You may need to update your all-cabal-hashes. There should be an example in the stacklock2nix repo of what this looks like.

07:52:18
@maralorn:maralorn.demaralornIt might be easier to use callHackageDirect instead.07:53:29
@terrorjack:matrix.orgterrorjack set a profile picture.08:53:45
@maralorn:maralorn.demaralornThere doesn’t seem to be any opposition to the GHC deprecation policy.10:29:51
@maralorn:maralorn.demaralorn

I have a currently an unstable health situation, so I don’t know if I can push this further but these are the next steps imo:

  1. Persist it somewhere.
  2. Add upcoming deprecations to 25.05 release notes (this is obviously moderately urgent).
  3. figure out what’s required to actually remove stuff …
10:33:03
@ners:nixos.devners

I'm trying to build haskellPackages.haxl and getting an error I've never seen before:

$ NIXPKGS_ALLOW_BROKEN=1 nix build --impure github:nixos/nixpkgs/nixpkgs-unstable#haskellPackages.haxl

Running phase: setupCompilerEnvironmentPhase
@nix { "action": "setPhase", "phase": "setupCompilerEnvironmentPhase" }
Build with /nix/store/xmvlqc3f0sfij7083klg3z6i4yr4rvsz-ghc-9.8.4.
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/b0gypdzhqq9bbfxm9yxk03h0csbcfsr3-haxl-2.5.1.1.tar.gz
source root is haxl-2.5.1.1
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file "haxl-2.5.1.1/tests/WriteTests.hs"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: compileBuildDriverPhase
@nix { "action": "setPhase", "phase": "compileBuildDriverPhase" }
setupCompileFlags: -package-db=/build/tmp.PtMyMlMYBx/setup-package.conf.d -threaded

<no location info>: error: [GHC-95379]
    Output was redirected with -o, but no output will be generated.
    There is no module named ‘Main’.

This is a recent error, until a few days ago I was able to build it just fine despite the broken status. Can anyone help demystify this error?

12:07:37
@maralorn:maralorn.demaralornThat looks like the package is shipping an empty Setup.hs file.12:09:04
@maralorn:maralorn.demaralornWhich is implausible, but I think that could produce this error message.12:09:27
@ners:nixos.devners

It has the usual Setup.hs content:

module Setup where
import Distribution.Simple
main = defaultMain
12:20:27
@maralorn:maralorn.demaralornWhen you say recent error could it be that it was part of the big 9.6 -> 9.8 bump which reached master a few weeks ago?12:28:34
@maralorn:maralorn.demaralorn* When you say recent error could it be that it was part of the big 9.6 -> 9.8 bump which reached master about two weeks ago?12:30:29
@ners:nixos.devners
In reply to @maralorn:maralorn.de
When you say recent error could it be that it was part of the big 9.6 -> 9.8 bump which reached master about two weeks ago?
Yeah, that looks about right. Building it on the nixos-24.11 branch where there is still GHC 9.6.6 does not have that error.
12:37:07
@ners:nixos.devners(it's still broken because of depependency bounds)12:37:18
@maralorn:maralorn.demaralornHuh, I mean it is a custom Setup.hs.12:43:49
@maralorn:maralorn.demaralornAt least the header indicates that.12:44:06
@maralorn:maralorn.demaralornI wonder if it works if you just rm it in the postPatch phase.12:44:33
@ners:nixos.devnersIt does! Thanks for the tip. :)12:46:37
@ners:nixos.devnersI'll open a PR against haskell-updates.12:47:01
@ners:nixos.devners* I'll open a PR against haskell-updates to unbreak it.12:47:06

Show newer messages


Back to Room ListRoom Version: 6