| 19 May 2025 |
keypusher | I'll try after i adopt the change about overrideCabal you proposed. | 20:06:12 |
maralorn | Alternatively there is this absurd syntax: nix build '.#default^*' which will build all outputs. | 20:06:50 |
keypusher | hehe. Worth a try | 20:07:09 |
keypusher | tried nix build --impure --print-build-logs .#default.doc | 20:09:41 |
keypusher | It produced a result-doc symlink... but the folder was empty | 20:10:05 |
maralorn | heh | 20:12:09 |
keypusher | Maybe the problem isn't a nix one but that i haven't configured haddock properly?! I have to confess I rarely produce docs. | 20:12:55 |
maralorn | Just to be sure can you do readlink result-doc? | 20:13:08 |
maralorn | It seems to be something like that, but you normally don’t have to do anything to have haddocks enabled. | 20:13:54 |
maralorn | Which plattform are you on? | 20:14:03 |
maralorn | * Which platform are you on? | 20:14:08 |
keypusher | Seems to work | 20:14:08 |
maralorn | does it end in something like <hash>-lf-regstry3-<version>-doc? | 20:15:11 |
maralorn | * does it end in something like <hash>-lf-registry3-<version>-doc? | 20:15:21 |
keypusher | x86-linux | 20:15:54 |
keypusher | output: /nix/store/j4s4pxm1wmdgd5s14xlbmkc57fcrha60-RegistryThree-0.1.2.0-doc | 20:16:24 |
maralorn | Looks good. | 20:16:37 |
maralorn | Can you maybe rerun the build e.g. with nix build --print-build-logs .#default.doc and have a look for the haddockPhase being mentioned in the logs? | 20:17:19 |
maralorn | * 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 | Jumped into a shell and did "cabal haddock", which does produce a documentation | 20:17:40 |
maralorn | Huh, I guess you don’t even need to rerun it. | 20:17:42 |
maralorn | You can do something like nix log .#default.doc I think. | 20:18:00 |
keypusher | ok | 20:18:12 |
keypusher | unrecognized flag "--check" ? | 20:19:32 |
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 |