| 19 May 2025 |
keypusher | When i rebuild (after chaning some haddock ) My logs show this
...
Running phase: haddockPhase
Running phase: installPhase
...
| 20:28:23 |
keypusher | My .cabal file contains 1 lib, 2 binaries and one test module. Not sure if that can complicate things? | 20:29:41 |
maralorn | Curious. | 22:08:20 |
maralorn | Oh | 22:10:05 |
keypusher | Yeah, i'm running out of ideas. | 22:09:21 |
maralorn | Maybe your package has the isExecutable flag set? | 22:10:48 |
keypusher | 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 | I am looking at pkgs/development/haskell-modules/generic-builder.nix which describes the derivation in question. | 22:11:54 |
maralorn | And apparently haddocks only get build when the package counts as a library. | 22:12:34 |
keypusher | Sadly no | 22:11:59 |
maralorn | Maybe callCabal2nix sets the "isExecutable" flag. | 22:12:59 |
maralorn | You can try fixing it with isLibrary = true in the override you worked in before. | 22:14:15 |
maralorn | That didn’t help? | 22:21:20 |
keypusher | ill try that | 22:14:53 |
maralorn | Nope, the problem is quite certainly that no docs are being generated in the haddockPhase. | 22:21:50 |
keypusher | Thanks for trying to help btw. Much appreciated | 22:16:32 |
maralorn | I am pretty certain that is it. | 22:24:34 |
keypusher | ...Hmm.. this is looking good | 22:18:37 |
keypusher | Yay, that solved it! | 22:19:41 |
keypusher | That DID help. Problem solved. Awesome. Supethanks. | 22:22:45 |
keypusher | Yep. That's it. | 22:27:15 |
keypusher | To be overly clear (for anyone stumbling upon this): You need to set `isLibrary = true" to get docs generated. | 22:30:34 |
keypusher | * To be overly clear (for anyone stumbling upon this): You need to set `isLibrary = true` to get docs generated. | 22:30:48 |
keypusher | * To be overly clear (for anyone stumbling upon this): You need to set isLibrary = true to get docs generated. | 22:31:14 |
| 20 May 2025 |
sterni (he/him) | isLibrary should be set if the cabal file has a (public) library component | 12:22:05 |
alexfmpe | It must have in this case, or there would be nothing to generate haddocks for, no? | 14:29:17 |
alexfmpe | * It must have such a lib in this case, or there would be nothing to generate haddocks for, no? | 14:30:23 |
Magnus | Redacted or Malformed Event | 20:31:50 |
| 21 May 2025 |
| WeetHet changed their profile picture. | 10:59:14 |
maralorn | Does anyone have insights as to where to persist the deprecation policy? | 18:20:58 |