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
<angerman> aarch32 is not very well supported.
<proofofkeags> by nix or by haskell.nix
<angerman> The package will be a red herring. We do provide boot packages in Haskell.nix, so not finding them on hackage is not necessarily an issue.
<angerman> proofofkeags: by GHC when cross compiling.
<proofofkeags> I thought aarch32 went through llvm
<proofofkeags> which ghc does support?
<angerman> Right, but TH still requires GHCs static linker/loader to work.
<angerman> I’m relatively confident I’ve fixed aarch64 to the point where it should work. But aarch32 likely has still quite some bugs.
<proofofkeags> I'm not opposed to aarch64
<proofofkeags> trouble is I'm trying to target a pi4
<proofofkeags> which raspbian-buster still only has 32bit userland support for
<proofofkeags> but I suppose if I figure out a way to get a 64 bit glibc onto it, then that should be fine?
<proofofkeags> afaict that's the only thing dynamically linked usually
fendor_ has joined #haskell.nix
fendor has quit [Ping timeout: 260 seconds]
clever_ has joined #haskell.nix
clever_ has quit [Changing host]
clever_ is now known as clever
proofofkeags has quit [Ping timeout: 272 seconds]
lemmih has joined #haskell.nix
<lemmih> Can I use haskell-nix if I have 'extra-deps' in my stack.yaml file?
<lemmih> Right now it seems to me that haskell.nix will just ignore 'extra-deps'.
<angerman> lemmih: that seems odd. nix-tools stack-to-nix should translate those: https://github.com/input-output-hk/nix-tools/blob/53cd6d984ef2be1ae1b4e4a2e79703affa63565c/lib/Stack2nix/Stack.hs#L198
<michaelpj> lemmih: they definitely work
<michaelpj> can you say more specifically what you're doing and what goes wrong?
hekkaidekapus_ has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]
fendor_ is now known as fendor
hekkaidekapus_ is now known as hekkaidekapus
__monty__ has joined #haskell.nix
o1lo01ol1o has joined #haskell.nix
<lemmih> michaelpj: My package depends on reanimate-svg-0.11 but version isn't made available. Think it makes reanimate-svg-0.10 available, though.
<lemmih> Could it be that my hackage snapshot (or nix snapshot or haskell.nix snapshot) is too old?
<michaelpj> can you paste your `default.nix` or wherever you defined the haskell.nix bit?
<michaelpj> s/paste/pastebin
<lemmih> I didn't write it, though. I'm completely new to nix.
o1lo01ol1o has quit [Read error: Connection reset by peer]
<michaelpj> hmm, looks right
<michaelpj> if your hackage snapshot was too old you'd get an error during nix evaluation
<michaelpj> can you say specifically what goes wrong?
<lemmih> Yeah, one moment, I'll run it again.
o1lo01ol1o has joined #haskell.nix
<lemmih> Ah, it says "error: attribute '0.11.0.0' missing, at .."
<lemmih> I guess that means my snapshot is too old.
<lemmih> Hm, ok, I'm using LTS 16.12 which is ghc-8.8.4. Looks like that's not supported by haskell.nix.
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<lemmih> Switching to 'cabalProject' and using the 'master' branch version of haskell.nix kinda works.
<lemmih> It wants to compile blender from source.
<michaelpj> lemmih: you're explicitly asking for 8.8.3 here, which seems odd https://github.com/reanimate/reanimate/blob/master/default.nix#L24
<lemmih> Does this mean the master branch has such a new version of blender that there are no binary caches available?
<michaelpj> can you paste the whole error, please
o1lo01ol1o has joined #haskell.nix
<michaelpj> well, the 8.8.4 warning is from all-hies, which isn't directly anything to do with us. I am somewhat baffled by the complaint about not being able to find `stack-8.8.4.yaml`, tbh. And I don't see the "attribute missing" error you mentioned?
<michaelpj> oh, actually I bet that's also from `all-hies`
<lemmih> This is using haskell.nix from the master branch. I only see the missing attribute error when I use my previous snapshot.
<michaelpj> your previous stack snapshot? or your previous commit of haskell.nix?
fendor_ has joined #haskell.nix
fendor has quit [Remote host closed the connection]
<michaelpj> to avoid the noise from `all-hies`, try just `nix-build default.nix`
<lemmih> I don't really care if my development environment is configured with cabal-install or stack. Either works for me.
<lemmih> My only project right now is the hours of building required without binary caches.
<michaelpj> however, hitting the cache is a matter of having the right haskell.nix version and the right nixpkgs version. You might also need to change your nixpkgs version if you update your haskell.nix version
<michaelpj> oh no, ignore me, you're getting it from us
<michaelpj> that should be fine then
<michaelpj> okay, I tried it locally, and yes, the issue is that the hackage snapshot is too old. Annoyingly, there should be a better error for this, but it seems that you don't get it if you go via generating things from a stack snapshot, sigh
<michaelpj> I'll make an issue for that
<michaelpj> you might also be interested in the ability to pin hackage.nix and stackage.nix independently, which will let you fix this kind of thing without having to update haskell.nix itself, which tends to cause lots of rebuilds: https://input-output-hk.github.io/haskell.nix/tutorials/hackage-stackage/#updating-and-pinning-hackagenix-and-stackagenix
<lemmih> Thanks. You've been very helpful.
<michaelpj> I'm just trying the version with master since I'm not sure what's up with that...
<michaelpj> it's my personal quest to eliminate "missing attribute" errors in favour of things that actually tell you what's wrong ;)
<michaelpj> lemmih: the problem is `all-hies`. It appears to hook into haskell.nix in an... exciting way, such that updating haskell.nix broke it
<michaelpj> I'm not 100% clear on how it works, you could ask infinisil possibly
<lemmih> Ah. I'll probably just drop all-hies.
<michaelpj> if I were you and I wanted to get on with my life, I'd go with the approach of passing hackage.nix/stackage.nix in yourself and just update them
<michaelpj> or that
<infinisil> Yeah I think I should just deprecate/archive all-hies
<michaelpj> I worked this out by: 1) `nix-build default.nix` seemed to work 2) `nix-shell --show-trace` pointed to a call in `all-hies`
syd has joined #haskell.nix
syd has quit [Quit: Connection closed]
fendor_ is now known as fendor
proofofkeags has joined #haskell.nix
fendor has quit [Remote host closed the connection]
__monty__ has quit [Quit: leaving]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #haskell.nix
o1lo01ol1o has quit [Ping timeout: 260 seconds]
michaelpj1 has joined #haskell.nix
michaelpj has quit [Ping timeout: 246 seconds]
proofofkeags has quit [Ping timeout: 265 seconds]