!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

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

You have reached the beginning of time (for this room).


SenderMessageTime
19 May 2025
@maralorn:maralorn.demaralorn * Can you maybe rerun the build e.g. with nix build --check --print-build-logs .#default.doc and have a look for the haddockPhase being mentioned in the logs? 20:17:27
@keypusher:matrix.orgkeypusherJumped into a shell and did "cabal haddock", which does produce a documentation 20:17:40
@maralorn:maralorn.demaralornHuh, I guess you don’t even need to rerun it.20:17:42
@maralorn:maralorn.demaralorn You can do something like nix log .#default.doc I think. 20:18:00
@keypusher:matrix.orgkeypusherok20:18:12
@keypusher:matrix.orgkeypusherunrecognized flag "--check" ?20:19:32
@keypusher:matrix.orgkeypusher

When i rebuild (after chaning some haddock ) My logs show this

...
Running phase: haddockPhase
Running phase: installPhase
...
20:28:23
@keypusher:matrix.orgkeypusherMy .cabal file contains 1 lib, 2 binaries and one test module. Not sure if that can complicate things?20:29:41
@maralorn:maralorn.demaralornCurious.22:08:20
@maralorn:maralorn.demaralornOh22:10:05
@keypusher:matrix.orgkeypusherYeah, i'm running out of ideas.22:09:21
@maralorn:maralorn.demaralorn Maybe your package has the isExecutable flag set? 22:10:48
@keypusher:matrix.orgkeypusher

The very last two lines of the build has this

RegistryThree> checking for references to /build/ in /nix/store/sr5drpczdv8vypi7xwg91r6hx9hy5syi-RegistryThree-0.1.2.0-doc...
RegistryThree> patching script interpreter paths in /nix/store/sr5drpczdv8vypi7xwg91r6hx9hy5syi-RegistryThree-0.1.2.0-doc

...im wondering if that patching part does something?

22:10:25
@maralorn:maralorn.demaralorn I am looking at pkgs/development/haskell-modules/generic-builder.nix which describes the derivation in question. 22:11:54
@maralorn:maralorn.demaralornAnd apparently haddocks only get build when the package counts as a library.22:12:34
@keypusher:matrix.orgkeypusherSadly no22:11:59
@maralorn:maralorn.demaralornMaybe callCabal2nix sets the "isExecutable" flag.22:12:59
@maralorn:maralorn.demaralorn You can try fixing it with isLibrary = true in the override you worked in before. 22:14:15
@maralorn:maralorn.demaralornThat didn’t help?22:21:20
@keypusher:matrix.orgkeypusherill try that22:14:53
@maralorn:maralorn.demaralornNope, the problem is quite certainly that no docs are being generated in the haddockPhase.22:21:50
@keypusher:matrix.orgkeypusherThanks for trying to help btw. Much appreciated22:16:32
@maralorn:maralorn.demaralornI am pretty certain that is it.22:24:34

Show newer messages


Back to Room ListRoom Version: 6