!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

685 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://nixos.org/manual/nixpkgs/unstable/#haskell | Current PR: https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Ahaskell-updates | Maintainer Docs: https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/HACKING.md | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | Merger Schedule: https://cloud.maralorn.de/apps/calendar/p/H6migHmKX7xHoTFa/dayGridMonth/now | Join #haskell.nix:libera.chat for question about the alternative haskell.nix infrastructure136 Servers

Load older messages


SenderMessageTime
19 May 2025
@maralorn:maralorn.demaralorn And if you build nix build .#default.doc? 20:05:17
@keypusher:matrix.orgkeypusherI'll try after i adopt the change about overrideCabal you proposed.20:06:12
@maralorn:maralorn.demaralorn Alternatively there is this absurd syntax: nix build '.#default^*' which will build all outputs. 20:06:50
@keypusher:matrix.orgkeypusherhehe. Worth a try 20:07:09
@keypusher:matrix.orgkeypusher tried nix build --impure --print-build-logs .#default.doc 20:09:41
@keypusher:matrix.orgkeypusher It produced a result-doc symlink... but the folder was empty 20:10:05
@maralorn:maralorn.demaralornheh20:12:09
@keypusher:matrix.orgkeypusherMaybe 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:maralorn.demaralorn Just to be sure can you do readlink result-doc? 20:13:08
@maralorn:maralorn.demaralornIt seems to be something like that, but you normally don’t have to do anything to have haddocks enabled.20:13:54
@maralorn:maralorn.demaralornWhich plattform are you on?20:14:03
@maralorn:maralorn.demaralorn* Which platform are you on?20:14:08
@keypusher:matrix.orgkeypusherSeems to work20:14:08
@maralorn:maralorn.demaralorn does it end in something like <hash>-lf-regstry3-<version>-doc? 20:15:11
@maralorn:maralorn.demaralorn * does it end in something like <hash>-lf-registry3-<version>-doc? 20:15:21
@keypusher:matrix.orgkeypusherx86-linux 20:15:54
@keypusher:matrix.orgkeypusheroutput: /nix/store/j4s4pxm1wmdgd5s14xlbmkc57fcrha60-RegistryThree-0.1.2.0-doc20:16:24
@maralorn:maralorn.demaralornLooks good.20:16:37
@maralorn:maralorn.demaralorn 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: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

Show newer messages


Back to Room ListRoom Version: 6