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
<infinisil> michaelpj: Oh the module system can do that, but it's a bit more tricky, I'll leave a comment
pjb has quit [Ping timeout: 272 seconds]
pjb has joined #haskell.nix
alexarice[m] has quit [*.net *.split]
domenkozar[m] has quit [*.net *.split]
angerman has quit [*.net *.split]
stites[m] has quit [*.net *.split]
stites[m] has joined #haskell.nix
Poscat[m] has quit [Ping timeout: 248 seconds]
ptival[m] has quit [Ping timeout: 265 seconds]
siraben has quit [Ping timeout: 265 seconds]
Ericson2314 has quit [Ping timeout: 265 seconds]
stites[m] has quit [Ping timeout: 258 seconds]
michaelpj has quit [Ping timeout: 260 seconds]
jonge[m] has quit [Ping timeout: 268 seconds]
angerman has joined #haskell.nix
angerman has quit [*.net *.split]
angerman has joined #haskell.nix
stites[m] has joined #haskell.nix
jonge[m] has joined #haskell.nix
alexarice[m] has joined #haskell.nix
angerman has quit [*.net *.split]
angerman has joined #haskell.nix
alexarice[m] has quit [Ping timeout: 268 seconds]
jonge[m] has quit [Ping timeout: 258 seconds]
stites[m] has quit [Ping timeout: 268 seconds]
domenkozar[m] has joined #haskell.nix
michaelpj has joined #haskell.nix
ptival[m] has joined #haskell.nix
Poscat[m] has joined #haskell.nix
siraben has joined #haskell.nix
Ericson2314 has joined #haskell.nix
alexarice[m] has joined #haskell.nix
jonge[m] has joined #haskell.nix
stites[m] has joined #haskell.nix
acarrico has quit [Ping timeout: 240 seconds]
acarrico has joined #haskell.nix
mpickering has quit [Ping timeout: 272 seconds]
mpickering has joined #haskell.nix
fendor has joined #haskell.nix
fendor_ has joined #haskell.nix
fendor has quit [Ping timeout: 260 seconds]
fendor_ is now known as fendor
hekkaidekapus{ has joined #haskell.nix
hekkaidekapus_ has quit [Ping timeout: 268 seconds]
__monty__ has joined #haskell.nix
hexagoxel has quit [Ping timeout: 256 seconds]
hexagoxel has joined #haskell.nix
<ocharles> infinisil: this is perfect! Just what I was hoping to do
hekkaidekapus} has joined #haskell.nix
hekkaidekapus{ has quit [Ping timeout: 268 seconds]
<ocharles> Am I correct in understanding that Haskell.nix already uses gold for linking when possible?
<michaelpj> ocharles: yeah we use it on linux
<ocharles> cool, so no need for me to manually set that up :)
<ocharles> Almost done converting our codebase to use Haskell.nix. Didn't quite anticipate it taking a week, but ah well
<ocharles> One of those projects where 90% is easy, but that last 10%... oof.
<michaelpj> yeah
<michaelpj> who knew that building Haskell packages was so complicated...
<ocharles> Nix constantly rebuilding things because you breathed on something doesn't help
<michaelpj> you've got your source filtering set up properly, right?
<michaelpj> helps a lot
<ocharles> Afaik. It's more just the multiple minute evaluation before anything happens. Once this is done that will hardly matter as lorri will cache it. I think it's just the churn of me working directly on this bit
<michaelpj> is that with materializaion?
<ocharles> No, I haven't tried that yet
<ocharles> I'm still nervous to do that. Right now CI takes ~3min to evaluate then gets building. I can live with that
<ocharles> And all devs use some form of shell caching (and our shell tends to be fairly stable)
fendor has quit [Remote host closed the connection]
<ocharles> I think I'm just moaning, don't pay me too much attention :)
fendor has joined #haskell.nix
<michaelpj> it makes a fairly significant difference because your'e not waiting for the `cabal configure` call
<michaelpj> anyway, it's there if you want it
<ocharles> I'm just nervous about that falling out of sync and surprising our devs. I don't want everyone to have to have deep intimate knowledge of haskell.nix for when things go wrong
<ocharles> As long as I can have CI flag "hey, this stuff is wrong" then I'm happy. I can picture the hard stuff happening at build time, not evaluation, and then doing a directory diff - that would work nicely
<michaelpj> this is what the `checkMaterialization` flag is for. You can set that in your CI - then the CI will check it but your devs won't
<ocharles> Right, and that only costs build time, not evaluation time?
<michaelpj> no, it costs eval time - but only in CI
<ocharles> I could of course just try it :)
<ocharles> Ah, right
<michaelpj> hm, interesting idea though
<michaelpj> maybe we could continue assuming it's correct for evaluation, but give you a build-time task that will check if its' wrong
<ocharles> Yea, that's what I'm thinking. So yea, if things are wrong the CI build might be weird, but you get this obvious canary
<michaelpj> I like the idea, it would probably require some reworking, though. At the moment it does get checked at eval time, though
<michaelpj> but "materialization+checking" is no worse than "no materialization"!
<ocharles> well, CI is the bit that I don't want to be slow :)
<ocharles> I just find it annoying when you've made a dumb typo that gets caught in a 5s build but it took 3 minutes to get to that ponit
<michaelpj> in the Haskell? or in the Nix? there's not really a solution for the Nix, unfortunately... except materialization :p
<ocharles> In Nix. And sure, but this is why I need materialization and a check for materialization that doesn't impact evaluation time
<ocharles> But it sounds like that doesn't exist today (which is fine, I can contribute it!)
<michaelpj> yeah, I'm keen! I would love to not pay that penalty in our CI any more :D
<ocharles> Ok, finally got green on CI. I'll try materialization everywhere now
carter has quit [Ping timeout: 264 seconds]
gluegadget has quit [Ping timeout: 246 seconds]
lally has quit [Ping timeout: 265 seconds]
manveru has quit [Ping timeout: 272 seconds]
hamishmack has quit [Ping timeout: 272 seconds]
tnks has quit [Read error: Connection reset by peer]
blackriversoftwa has quit [Read error: Connection reset by peer]
angerman has quit [Read error: Connection reset by peer]
typetetris has quit [Write error: Connection reset by peer]
jbetz has quit [Read error: Connection reset by peer]
ProofTechnique has quit [Read error: Connection reset by peer]
buggymcbugfix has quit [Read error: Connection reset by peer]
ajmcmiddlin has quit [Read error: Connection reset by peer]
chessai has quit [Read error: Connection reset by peer]
adamse has quit [Write error: Connection reset by peer]
mpickering has quit [Read error: Connection reset by peer]
joshmeredith has quit [Read error: Connection reset by peer]
Tritlo has quit [Write error: Connection reset by peer]
elvishjerricco has quit [Read error: Connection reset by peer]
feepo has quit [Write error: Connection reset by peer]
rizary has quit [Read error: Connection reset by peer]
dsal has quit [Read error: Connection reset by peer]
dmj` has quit [Read error: Connection reset by peer]
ajmcmiddlin has joined #haskell.nix
elvishjerricco has joined #haskell.nix
buggymcbugfix has joined #haskell.nix
blackriversoftwa has joined #haskell.nix
joshmeredith has joined #haskell.nix
jbetz has joined #haskell.nix
carter has joined #haskell.nix
hamishmack has joined #haskell.nix
tnks has joined #haskell.nix
chessai has joined #haskell.nix
Tritlo has joined #haskell.nix
dsal has joined #haskell.nix
gluegadget has joined #haskell.nix
angerman has joined #haskell.nix
lally has joined #haskell.nix
manveru has joined #haskell.nix
typetetris has joined #haskell.nix
ProofTechnique has joined #haskell.nix
dmj` has joined #haskell.nix
dmj` has quit [Ping timeout: 272 seconds]
ProofTechnique has quit [Ping timeout: 264 seconds]
mpickering has joined #haskell.nix
rizary has joined #haskell.nix
feepo has joined #haskell.nix
dmj` has joined #haskell.nix
ProofTechnique has joined #haskell.nix
adamse has joined #haskell.nix
adamse has quit [Read error: Connection reset by peer]
dmj` has quit [Read error: Connection reset by peer]
ProofTechnique has quit [Read error: Connection reset by peer]
adamse has joined #haskell.nix
dmj` has joined #haskell.nix
ProofTechnique has joined #haskell.nix
joshmeredith has quit [Read error: Connection reset by peer]
joshmeredith has joined #haskell.nix
joshmeredith has quit [Ping timeout: 264 seconds]
joshmeredith has joined #haskell.nix
fendor_ has joined #haskell.nix
fendor has quit [Ping timeout: 256 seconds]
ProofTechnique has quit [Read error: Connection reset by peer]
jbetz has quit [Read error: Connection reset by peer]
angerman has quit [Read error: Connection reset by peer]
jbetz has joined #haskell.nix
angerman has joined #haskell.nix
ProofTechnique has joined #haskell.nix
Tritlo has quit [Ping timeout: 256 seconds]
gluegadget has quit [Read error: Connection reset by peer]
dmj` has quit [Read error: Connection reset by peer]
mpickering has quit [Ping timeout: 265 seconds]
gluegadget has joined #haskell.nix
dmj` has joined #haskell.nix
mpickering has joined #haskell.nix
Tritlo has joined #haskell.nix
aveltras has joined #haskell.nix
mpickering has quit [Ping timeout: 264 seconds]
angerman has quit [Read error: Connection reset by peer]
gluegadget has quit [Ping timeout: 260 seconds]
ProofTechnique has quit [Read error: Connection reset by peer]
jbetz has quit [Read error: Connection reset by peer]
Tritlo has quit [Read error: Connection reset by peer]
dmj` has quit [Ping timeout: 260 seconds]
aveltras has quit [Ping timeout: 260 seconds]
blackriversoftwa has quit [Read error: Connection reset by peer]
dsal has quit [Read error: Connection reset by peer]
ajmcmiddlin has quit [Write error: Connection reset by peer]
chessai has quit [Read error: Connection reset by peer]
angerman has joined #haskell.nix
blackriversoftwa has joined #haskell.nix
gluegadget has joined #haskell.nix
mpickering has joined #haskell.nix
ajmcmiddlin has joined #haskell.nix
dsal has joined #haskell.nix
jbetz has joined #haskell.nix
chessai has joined #haskell.nix
Tritlo has joined #haskell.nix
ProofTechnique has joined #haskell.nix
aveltras has joined #haskell.nix
_d0t has joined #haskell.nix
dmj` has joined #haskell.nix
<_d0t> ohai! I'm having this problem with haskell.nix. It seems to ignore data-files pragma from cabal. Is there anything I could do?
<__monty__> _d0t: I used data-files for my Advent of Code solutions this year, with haskell.nix.
<_d0t> __monty__: could you maybe provide a link to your code?
<_d0t> What I'm having now is these files aren't copied to a build dir unless I manually specify every file in `extraSrcFiles` in nix.
<_d0t> Weird. I'm having basically the same except it's a stack project in my case.
<_d0t> And files are listed without a mask in cabal.
ProofTechnique has quit [Ping timeout: 260 seconds]
blackriversoftwa has quit [Read error: Connection reset by peer]
Tritlo has quit [Read error: Connection reset by peer]
ajmcmiddlin has quit [Read error: Connection reset by peer]
dsal has quit [Write error: Connection reset by peer]
chessai has quit [Write error: Connection reset by peer]
mpickering has quit [Read error: Connection reset by peer]
gluegadget has quit [Read error: Connection reset by peer]
jbetz has quit [Write error: Connection reset by peer]
angerman has quit [Read error: Connection reset by peer]
aveltras has quit [Read error: Connection reset by peer]
<__monty__> Maybe your src filter is too strict?
gluegadget has joined #haskell.nix
aveltras has joined #haskell.nix
<_d0t> No, it's just clearGit. And those files are definitely checked in.
dmj` has quit [Ping timeout: 265 seconds]
mpickering has joined #haskell.nix
chessai has joined #haskell.nix
ProofTechnique has joined #haskell.nix
angerman has joined #haskell.nix
dsal has joined #haskell.nix
ajmcmiddlin has joined #haskell.nix
Tritlo has joined #haskell.nix
dmj` has joined #haskell.nix
blackriversoftwa has joined #haskell.nix
jbetz has joined #haskell.nix
<_d0t> I checked, `cabal sdist` includes those files in the tarball. So it's definitely a nix issue somewhere. How can I debug this?
<ocharles> _d0t: I think the recent changes to `cleanCabalComponent` have broken it
<ocharles> Because I'm also having to explicitly use do workarounds to keep data files
<_d0t> ocharles: how recent are those? I used a commit from a week ago. Changed it to today's one.
<ocharles> AuthorDate: Thu Jan 14 12:34:06 2021 +1300
<ocharles> AuthorDate: Tue Jan 19 14:38:10 2021 +1300
<ocharles> AuthorDate: Wed Jan 20 18:22:49 2021 +1300
<ocharles> Beyond that, it's months ago
<ocharles> The last one explicitly talks about `package.dataFiles`
<ocharles> Maybe you can use `git bisect` to see if it broke?
<_d0t> Ugh it's gonna be pain. Gotta make a smaller example for that. My current repo requires about 16G of space per nix build somehow -_-
ProofTechnique has quit [Ping timeout: 265 seconds]
ajmcmiddlin has quit [Ping timeout: 265 seconds]
blackriversoftwa has quit [Read error: Connection reset by peer]
jbetz has quit [Read error: Connection reset by peer]
dsal has quit [Read error: Connection reset by peer]
chessai has quit [Read error: Connection reset by peer]
Tritlo has quit [Write error: Connection reset by peer]
mpickering has quit [Read error: Connection reset by peer]
dmj` has quit [Read error: Connection reset by peer]
angerman has quit [Write error: Connection reset by peer]
jonge[m] has quit [Ping timeout: 260 seconds]
ptival[m] has quit [Ping timeout: 260 seconds]
ptival[m] has joined #haskell.nix
jonge[m] has joined #haskell.nix
dsal has joined #haskell.nix
blackriversoftwa has joined #haskell.nix
chessai has joined #haskell.nix
mpickering has joined #haskell.nix
angerman has joined #haskell.nix
ProofTechnique has joined #haskell.nix
jbetz has joined #haskell.nix
dmj` has joined #haskell.nix
Tritlo has joined #haskell.nix
ajmcmiddlin has joined #haskell.nix
ajmcmiddlin has quit [Read error: Connection reset by peer]
Tritlo has quit [Read error: Connection reset by peer]
dmj` has quit [Read error: Connection reset by peer]
dmj` has joined #haskell.nix
Tritlo has joined #haskell.nix
ajmcmiddlin has joined #haskell.nix
fendor_ is now known as fendor
proofofkeags has joined #haskell.nix
_d0t has quit [Quit: Konversation terminated!]
Tritlo has quit [Read error: Connection reset by peer]
Tritlo has joined #haskell.nix
Poscat[m] has quit [Ping timeout: 240 seconds]
michaelpj has quit [Ping timeout: 240 seconds]
jonge[m] has quit [Ping timeout: 272 seconds]
Ericson2314 has quit [Ping timeout: 260 seconds]
ptival[m] has quit [Ping timeout: 268 seconds]
stites[m] has quit [Ping timeout: 268 seconds]
siraben has quit [Ping timeout: 268 seconds]
alexarice[m] has quit [Ping timeout: 265 seconds]
domenkozar[m] has quit [Ping timeout: 265 seconds]
typetetris_ has joined #haskell.nix
ProofTechnique has quit [Ping timeout: 246 seconds]
jbetz has quit [Ping timeout: 246 seconds]
typetetris has quit [Ping timeout: 264 seconds]
typetetris_ is now known as typetetris
jbetz has joined #haskell.nix
ProofTechnique has joined #haskell.nix
__monty__ has quit [Quit: leaving]
proofofkeags has quit [Ping timeout: 246 seconds]
fendor has quit [Read error: Connection reset by peer]
jonge[m] has joined #haskell.nix
jonge[m] has quit [Client Quit]
michaelpj has joined #haskell.nix