| 17 May 2025 |
maralorn | There doesn’t seem to be any opposition to the GHC deprecation policy. | 10:29:51 |
maralorn | 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:
- Persist it somewhere.
- Add upcoming deprecations to 25.05 release notes (this is obviously moderately urgent).
- figure out what’s required to actually remove stuff …
| 10:33:03 |
ners | 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 | That looks like the package is shipping an empty Setup.hs file. | 12:09:04 |
maralorn | Which is implausible, but I think that could produce this error message. | 12:09:27 |
ners | It has the usual Setup.hs content:
module Setup where
import Distribution.Simple
main = defaultMain
| 12:20:27 |
maralorn | When 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 | * 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 | 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 | (it's still broken because of depependency bounds) | 12:37:18 |
maralorn | Huh, I mean it is a custom Setup.hs. | 12:43:49 |
maralorn | At least the header indicates that. | 12:44:06 |
maralorn | I wonder if it works if you just rm it in the postPatch phase. | 12:44:33 |
ners | It does! Thanks for the tip. :) | 12:46:37 |
ners | I'll open a PR against haskell-updates. | 12:47:01 |
ners | * I'll open a PR against haskell-updates to unbreak it. | 12:47:06 |
maralorn | I 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 | Do 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 | 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 | i actually ran into issues not having a Setup.hs present when I tried to package some of my code for other Distros like Arch | 12:51:48 |
maralorn | I 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 | But it would be interesting to see how their Setup.hs deviates from the current default. | 12:55:19 |
ners | https://github.com/facebook/Haxl/blob/main/Setup.hs
It has a licence header on top. :think | 13:29:01 |
ners | * https://github.com/facebook/Haxl/blob/main/Setup.hs
It has a licence header on top. 🤔 | 13:29:07 |
maralorn | Plot twist: Someone somewhere built in a killswitch triggered by Meta. 😆 | 13:34:18 |
alexfmpe | probably company-provisioned editor config | 20:47:28 |
alexfmpe | big tech has really retentive lawyers | 20:48:14 |
alexfmpe | facebook/duckling wouldn't even accept my PR fixing the syntax for a haddock comment without me signing their snowflake license | 20:48:31 |
alexfmpe | proportional much | 20:49:04 |
| NixOS Moderation Bot banned @mightyiam:matrix.org (persistent time-wasting). | 23:30:21 |