!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

724 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org145 Servers

Load older messages


SenderMessageTime
1 May 2025
@alexfmpe:matrix.orgalexfmpeI thought my sweep for overrides script was bugged for haddock22:37:56
@alexfmpe:matrix.orgalexfmpeBecause barely any show up in configuration-common.nix22:38:20
@oak:universumi.fioak 🏳️‍🌈♥️ changed their display name from oak - mikatammi.fi to oak.23:17:55
@oak:universumi.fioak 🏳️‍🌈♥️ changed their display name from oak to oak 🫱⭕🫲.23:18:25
2 May 2025
@nrs-status:matrix.orgthirdofmay18081814goyanice, ty!00:07:42
@cdepillabout:matrix.orgcdepillabout I wonder why it was decided to autoformat the generated files. hackage-packages.nix was pretty readable to begin with. 06:51:42
@sternenseemann:systemli.orgsterni (he/him)cabal2nix emits this if there's no library component07:37:36
@hellwolf:matrix.orghellwolfI guess I missed something. I thought upon the merging of the latest haskell-updates branch, the default ghc should become 9.8? I have not seen that happen. (I don't depend on that, but I am just curious)10:28:26
@hellwolf:matrix.orghellwolfoh, my bad. It was not merged to master yet.10:29:11
@b:chreekat.netchreekat changed their profile picture.10:36:28
@maralorn:maralorn.demaralorn I recommend querying nixpkgs-bot with s 371032 😉 10:39:36
@maralorn:maralorn.demaralornRedacted or Malformed Event10:40:01
@alexfmpe:matrix.orgalexfmpethat's odd, I explicitly check for that12:31:02
@alexfmpe:matrix.orgalexfmpe v.isHaskellLibrary && !(lib.hasInfix "Setup haddock" v.haddockPhase); 12:31:04
@sternenseemann:systemli.orgsterni (he/him)well the haddock phase is always there is it not?12:31:58
@alexfmpe:matrix.orgalexfmpethe phase yes but not the infix12:34:20
@alexfmpe:matrix.orgalexfmpe
nix-repl> haskellPackages.attoparsec.isHaskellLibrary
true

nix-repl> haskellPackages.attoparsec.haddockPhase     
"runHook preHaddock\n\nrunHook postHaddock\n"
12:34:25
@alexfmpe:matrix.orgalexfmpe attoparsec has doHaddock = false on hackage-packages.nix 12:34:38
@alexfmpe:matrix.orgalexfmpethough this did reveal a somewhat confusing convention on my script with regards to defaults 12:36:58
@sternenseemann:systemli.orgsterni (he/him) probably due to doHaddockPhase | not (null internalLibNames) = False 12:52:29
@sternenseemann:systemli.orgsterni (he/him)Would be nice to figure out the ins and outs of the named libs stuff once and for all, maybe we can improve some stuff now12:53:12
@alexfmpe:matrix.orgalexfmpeah attoparsec does have internal lib yes12:53:27
@alexfmpe:matrix.orgalexfmpeI can take a peek at the internal lib stuff, was looking into cabal2nix again to wrap up my conditionals branch anyway12:56:15
@sternenseemann:systemli.orgsterni (he/him)I think most of it is figuring out how to do it with Setup.hs in the generic builder, i.e. do we have to install internal libs, do we have to install named public libs and how do we do that with Setup.hs13:12:40
@sternenseemann:systemli.orgsterni (he/him)installPhase is really weird, but there are likely reasons for the crazy conditionals in there13:12:56
@sternenseemann:systemli.orgsterni (he/him)almost certainly13:13:02
@teoc:matrix.orgTeo (he/him)I looked into this at some point and iirc if you don't specify a component it installs everything including private libs but if you specify a component with buildTarget then it does the right thing14:20:45
@teoc:matrix.orgTeo (he/him)At least as far as Setup.hs is concerned14:22:09
@malteneuss:matrix.org@malteneuss:matrix.org left the room.18:53:19
@hellwolf:matrix.orghellwolfwhat a great tool, thanks ! :)22:01:23

Show newer messages


Back to Room ListRoom Version: 6