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
<dhess> michaelpj: yeah :)
ocharles has quit [Read error: Connection reset by peer]
manveru has quit [Ping timeout: 260 seconds]
ocharles has joined #haskell.nix
manveru has joined #haskell.nix
typetetris has joined #haskell.nix
<typetetris> I don't know why that is, but an executable from an haskell.nix project I am doing has gcc as a dependency ... why?
<typetetris> The result, when I use `nix-build -A project.components.exes.example` only contains the one binary.
<typetetris> It also depends on ghc ...
fendor has joined #haskell.nix
fendor has quit [Ping timeout: 264 seconds]
<typetetris> Okay, we use ekg and the data-files from ekg lead to a dependcy to ekg-lib-ekg which then depends on ghc, gcc and all the other stuff.
<michaelpj> typetetris: is this on darwin by any chance? there's some dynamic linking issue there that results in things depending on GHC more than they should
hekkaidekapus_ has quit [Ping timeout: 240 seconds]
hekkaidekapus_ has joined #haskell.nix
<typetetris> No, thats normal linux on x86
<typetetris> That ekg-lib-ekg depends on ghc is questionable, but defendable I think. But maybe data-files should be in their own output derivation. I just want that index.html (among others) file and not ekg-something.hi :)
<typetetris> But I can't guess, how much work that would be.
<michaelpj> try setting `package.ekg.whatever.enableSeparateDataOutput = true;`
<michaelpj> not sure why that's not true by default
<typetetris> michaelpj: Thanks a lot! I will try that!
<michaelpj> also perhaps a question as to whether it should depend on GHC in the first place, but that might be harder to debug
<typetetris> Okay with `package.ekg.enableSeparateDataOutput = true;` in `modules` my exe doesn't depend on ghc any more, but it depends *directly* on gcc ... that is still strange.
<typetetris> I don't know, why that is but `/nix/store/b3zsk4ihlpiimv3vff86bb5bxghgdzb9-gcc-9.2.0/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/include` is included a lot as text in the binary of my exe.
<michaelpj> I don't really know how to debug that... is it statically linked in or something?
fendor has joined #haskell.nix
<michaelpj> haha if you follow the trail back to the PR that introduces it (link in the last comment), you can see someone doing the data output thing for ekg too!
<typetetris> And with `dontStrip` the only dependency I think is strange, is to `gcc-9.2.0-lib` , `ldd <myexe>` doesn't list any lib referencing gcc-9.2.0-lib.
<michaelpj> well that sounds like a new mystery...
proofofkeags has quit [Ping timeout: 246 seconds]
hekkaidekapus_ is now known as hekkaidekapus
proofofkeags has joined #haskell.nix
cvlad- has quit [Ping timeout: 240 seconds]
joshmeredith has quit [Ping timeout: 260 seconds]
joshmeredith has joined #haskell.nix
cvlad- has joined #haskell.nix
acarrico has quit [Ping timeout: 240 seconds]
acarrico has joined #haskell.nix
<hexagoxel> is there an example setup of a stackProject usage including materialization of project.nix? The only argument that seems related is `stack-nix` but afaict it is not getting used/respected at all (?)
<hexagoxel> (and yes I have asked a similar question before; I am just looking at a different project with a slightly different setup and am wondering if I really have to go the more manual approach for that one too..)
hekkaidekapus_ has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]
hekkaidekapus_ is now known as hekkaidekapus
acarrico has quit [Ping timeout: 264 seconds]
proofofkeags_ has joined #haskell.nix
proofofkeags has quit [Ping timeout: 264 seconds]
proofofkeags_ has quit [Remote host closed the connection]
proofofkeags_ has joined #haskell.nix
proofofkeags_ has quit [Remote host closed the connection]
proofofkeags_ has joined #haskell.nix
fendor has quit [Remote host closed the connection]
acarrico has joined #haskell.nix