!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

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

Load older messages


SenderMessageTime
24 Jan 2026
@andromeda:tchncs.deandromeda in a Rust project recently I had something like PATH=something/bin:\$PATH and I just remembered doing that xD 18:00:20
@andromeda:tchncs.deandromeda how do I build the docs for a haskellPackages.callPackage packageDerivation {} sort of thing? 18:22:38
@andromeda:tchncs.deandromeda nix build .#default.doc. Why does that work? 18:24:56
@acidbong:envs.netAcid Bonghaskell builder always builds docs by default18:29:26
@andromeda:tchncs.deandromeda my result only has lib bin and nix-support 18:34:38
@andromeda:tchncs.deandromeda but when I build default.doc result-doc contains share with the docs inside 18:35:09
@acidbong:envs.netAcid Bong yes, because doc is a separate input 20:01:51
@acidbong:envs.netAcid Bongthat's why it goes into the separate gcroot20:02:14
@sternenseemann:systemli.orgsterni (he/him)well not debacle, but I remember people complaining that cachix docs were installed 20:20:30
@andromeda:tchncs.deandromeda
In reply to @acidbong:envs.net
yes, because doc is a separate input
what do you mean 'a seperate input?' To which function? can I add .doc to any flake output to build docs if the package has them?
21:35:29
@andromeda:tchncs.deandromeda I don't understand what the .something in #output.something actuaally represents 21:37:24
@acidbong:envs.netAcid Bong
In reply to @andromeda:tchncs.de
what do you mean 'a seperate input?' To which function? can I add .doc to any flake output to build docs if the package has them?
i meant output, my bad
21:38:55
@acidbong:envs.netAcid Bong
In reply to @andromeda:tchncs.de
I don't understand what the .something in #output.something actuaally represents
https://nixos.org/manual/nixpkgs/unstable/#chap-multiple-output
21:39:01
26 Jan 2026
@lordmzte:mzte.deLordMZTE

I have a shellFor with withHoogle = true. When I run hoogle using hoogle serve, I have the issue that all link to haddoc are file:// URLs which my browser won't let me click because "security" and also prevent JS from working on those haddoc pages. Is it possible to make hoogle perhaps serve these files and link to that?

12:00:00
@lordmzte:mzte.deLordMZTE

Ah whoops there's --local, must've missed that when I first skimmed --help.

12:01:06
@ciznia:matrix.orgciznia joined the room.12:03:40
@maralorn:maralorn.demaralorn sterni: I noticed, that nixpkgs knows more SPDX identifiers than cabal. Do you think we could extend cabal2nix to parse identifiers based on availability in nixpkgs? 12:25:18
@sternenseemann:systemli.orgsterni (he/him)We can’t parse SPDX identifiers Cabal doesn’t know, no. At least not without maintaining a downstream SPDX parser13:22:45
@maralorn:maralorn.demaralornBut the parser would simply need to know the list of known SPDX identifiers in nixpkgs, right?14:35:25
@maralorn:maralorn.demaralornThat’s not hard to implement is it?14:35:40
@jboy:utwente.ioJohn ✒️ joined the room.16:52:34
@jboy:utwente.ioJohn ✒️ I see that there's a newer pandoc in nixpkgs under haskellPackages.pandoc_3_8_2_1, but when I try to use it with nix-shell -p it fails to build due to "missing or private dependencies." Is it just broken or is there a way to use this newer release? 16:55:15
@maralorn:maralorn.demaralorn John ✒️: It is then probably broken, these versioned attributes are autogenerated but normally unmaintained/curated. Using the newer release would probably requiring fixing the build. It doesn’t need to be hard but would require a bit of tinkering. 17:17:40
27 Jan 2026
@woobilicious:matrix.orgwoobilicious the mighttpd2 package default output only has some build artifacts in it, I think it needs to default to 'bin', and have it's mainProgram set 05:32:45
@sternenseemann:systemli.orgsterni (he/him) woobilicious: that's just the library it also exposes, but should be easy to add a bin output and set mainProgram manually (since it can't be determined automatically). 10:03:30
@jboy:utwente.ioJohn ✒️ I guess this is the relevant issue. 13:54:08
@jboy:utwente.ioJohn ✒️ * I guess this is the relevant issue (regarding newer pandoc releases). 13:54:33
@maralorn:maralorn.demaralornCorrect.14:01:02
@alexfmpe:matrix.orgalexfmpe well poop, looks like running iserv-proxy for cross template haskell requires __darwinAllowLocalNetworking = true on the package that uses TH, maybe we'll want that whole "use unix domain socket" bit sooner than expected
we hadn't noticed this before we couldn't even try it
a) cross from aarch64-darwin is broken alltogether: https://gitlab.haskell.org/ghc/ghc/-/issues/24939
b) the 'soft' cross of pkgsStatic was also broken: https://github.com/NixOS/nixpkgs/pull/484571
23:14:31
@alexfmpe:matrix.orgalexfmpe *

well poop, looks like running iserv-proxy for cross template haskell requires __darwinAllowLocalNetworking = true on the package that uses TH, maybe we'll want that whole "use unix domain socket" bit sooner than expected

we hadn't noticed this before because we couldn't even try it
a) cross from aarch64-darwin is broken alltogether: https://gitlab.haskell.org/ghc/ghc/-/issues/24939
b) the 'soft' cross of pkgsStatic was also broken: https://github.com/NixOS/nixpkgs/pull/484571

23:14:56

Show newer messages


Back to Room ListRoom Version: 6