angerman changed the topic of #haskell.nix to: https://input-output-hk.github.io/haskell.nix - alternative haskell infrastructure for nix; logs at https://logs.nix.samueldr.com/haskell.nix
<tnks> I see that Haskell.nix has a documented way to map names to packages for non-Haskell dependencies. Does normal Haskell infrastructure do any intelligent guessing of attribute names? My gut feeling is it does, but I haven't found the code that does that.
<tnks> May crosspost in #nixos too...
hekkaidekapus_ has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]
<angerman> tnks: cabal2nix *hard codes* them.
<angerman> tnks: if you want to change it, you need to change the mapping in cabal2nix, and then rebuild cabal2nix.
<tnks> angerman: oh, that's more hard-coding than I saw in my original look. Someone in #nixos pointed me to some guessing it seems to be doing: https://github.com/NixOS/cabal2nix/blob/master/hackage2nix/Main.hs#L216
<angerman> tnks: the underlying philosophy behind nix-tools is that it should only translate a foreign description into nix, not make decisions. Thus with cabal-to-nix, you get the cabal data exposed, and then need to map it appropriately in nix.
<tnks> @angerman yeah, I like it. I think whether hardcoding or not, cabal2nix is trying to be smart, and that might not work out right in all cases.
<angerman> tnks: you'll have to consider the history. cabal2nix tried to make haskell work in nix at all. Which is great. I see haskell.nix and nix-tools more of an iteration on those ideas, and maybe a bit of lessons learned. Eventually we took a different direction, as we decoupled ourselves from one fixed package set.
<angerman> You could potentially use the haskell infra in nixpkgs with nix-tools cabal-to-nix instead of cabal2nix though.
<angerman> There used to be (and I think there are even some left over artifacts in haskell.nix) from a compatibility builder that translated cabal-to-nix expressions intos omething the haskell infra in nixpkgs could work with.
<tnks> Yeah, I just look at it as too paths. Haskell Infrastructure might cache more, and Haskell.nix is more honest to what Cabal would do.
<tnks> This stuff is good to know. Mostly I'm just trying to make sure I understand the differences. I'm not too likely to do fancy things unless there's some pressing motivation.
acarrico has quit [Ping timeout: 240 seconds]
acarrico has joined #haskell.nix
angerman has quit [Excess Flood]
angerman has joined #haskell.nix
acarrico has quit [Ping timeout: 258 seconds]
acarrico has joined #haskell.nix
stuebinm has joined #haskell.nix
acarrico has quit [Ping timeout: 240 seconds]
acarrico has joined #haskell.nix
fendor_ has joined #haskell.nix
hekkaidekapus_ has quit [Ping timeout: 240 seconds]
fendor has quit [Ping timeout: 240 seconds]
hekkaidekapus_ has joined #haskell.nix
acarrico has quit [Ping timeout: 256 seconds]
hekkaidekapus_ has quit [Quit: hekkaidekapus_]
acarrico has joined #haskell.nix
hekkaidekapus has joined #haskell.nix
hekkaidekapus has quit [Remote host closed the connection]
hekkaidekapus has joined #haskell.nix
o1lo01ol1o has joined #haskell.nix
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #haskell.nix
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #haskell.nix
o1lo01ol1o has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #haskell.nix
o1lo01ol1o has quit [Ping timeout: 240 seconds]
o1lo01ol1o has joined #haskell.nix
shapr has joined #haskell.nix
<shapr> hallo, anyone using nix to setup a hoogle server for a bunch of packages at once?
proofofkeags has quit [Ping timeout: 244 seconds]
fendor_ is now known as fendor
o1lo01ol1o has quit [Remote host closed the connection]