!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

721 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.org143 Servers

Load older messages


SenderMessageTime
17 May 2025
@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
@maralorn:maralorn.demaralornI guess this has something to do with the recent modification of cabal build types, yet the error message is a bit baffling.12:47:38
@ners:nixos.devnersDo you think it makes sense to open a PR upstream removing the Setup.hs? I never quite understood what purpose that file serves.12:48:13
@winston:winston.shwinston my understanding is that it's basically the equivalent of a Makefile? like running
runhaskell Setup configure
runhaskell Setup build
runhaskell Setup install
12:51:29
@winston:winston.shwinstoni actually ran into issues not having a Setup.hs present when I tried to package some of my code for other Distros like Arch12:51:48
@maralorn:maralorn.demaralornI feel semi comfortable giving advice on this without understanding the problem. 😄 But yeah my general heuristic is that packages which don’t need special setup shouldn’t ship their own Setup.hs. The nixpkgs builder uses a fallback when that happens.12:54:25
@maralorn:maralorn.demaralornBut it would be interesting to see how their Setup.hs deviates from the current default.12:55:19
@ners:nixos.devners https://github.com/facebook/Haxl/blob/main/Setup.hs
It has a licence header on top. :think
13:29:01
@ners:nixos.devners * https://github.com/facebook/Haxl/blob/main/Setup.hs
It has a licence header on top. 🤔
13:29:07
@maralorn:maralorn.demaralornPlot twist: Someone somewhere built in a killswitch triggered by Meta. 😆13:34:18
@alexfmpe:matrix.orgalexfmpeprobably company-provisioned editor config20:47:28
@alexfmpe:matrix.orgalexfmpebig tech has really retentive lawyers 20:48:14
@alexfmpe:matrix.orgalexfmpefacebook/duckling wouldn't even accept my PR fixing the syntax for a haddock comment without me signing their snowflake license20:48:31
@alexfmpe:matrix.orgalexfmpeproportional much20:49:04
@mjolnir:nixos.orgNixOS Moderation Bot banned @mightyiam:matrix.org@mightyiam:matrix.org (persistent time-wasting).23:30:21
18 May 2025
@wildwestrom:nitro.chatwildwestromThank you for the response, I'm currently trying this out. Each time I build it takes about 20 minutes, so I'll let you know how it goes in awhile.11:22:35
@wildwestrom:nitro.chatwildwestrom

After an update, I've come up against another failure.

❯ nix build
warning: Git tree '/home/main/code/community/lamdu' is dirty
error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'Lamdu-0.8.1'
         whose name attribute is located at /nix/store/g3z13ffr1wzw8m9wivqyni2nbjl956wj-source/pkgs/stdenv/generic/make-derivation.nix:480:13

       … while evaluating attribute 'buildInputs' of derivation 'Lamdu-0.8.1'
         at /nix/store/g3z13ffr1wzw8m9wivqyni2nbjl956wj-source/pkgs/stdenv/generic/make-derivation.nix:535:13:
          534|             depsHostHost = elemAt (elemAt dependencies 1) 0;
          535|             buildInputs = elemAt (elemAt dependencies 1) 1;
             |             ^
          536|             depsTargetTarget = elemAt (elemAt dependencies 2) 0;

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: function 'anonymous lambda' called with unexpected argument 'libxml'
       at /nix/store/zjbqzwnsp7092jagr1xgrd33dq1i35xp-cabal2nix-test-framework-0.8.2.2/default.nix:1:1:
            1| { mkDerivation, ansi-terminal, ansi-wl-pprint, base, bytestring
             | ^
            2| , containers, hostname, HUnit, lib, old-locale, QuickCheck, random
11:38:59
@wildwestrom:nitro.chatwildwestromHere's the full trace. https://bpa.st/QC7A11:40:43
@sternenseemann:systemli.orgsterni (he/him)looks like the hard coded overrides are outdated in stacklock2nix https://github.com/cdepillabout/stacklock2nix/blob/108f6ab6d0208e3842443bea26dfd72b37d82f28/nix/build-support/stacklock2nix/cabal2nixArgsForPkg.nix#L12813:23:56

Show newer messages


Back to Room ListRoom Version: 6