codygman has quit [Read error: Connection reset by peer]
fendor has joined #haskell.nix
hekkaidekapus has quit [Remote host closed the connection]
hekkaidekapus has joined #haskell.nix
__monty__ has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]
hekkaidekapus has joined #haskell.nix
polls45 has joined #haskell.nix
hekkaidekapus has quit [Remote host closed the connection]
la-jesystani has joined #haskell.nix
<la-jesystani>
howdy, im just wondering whether using haskell.nix in a nix flake will lock the versions that haskell.nix fetches from hackage, is that true?
hekkaidekapus has joined #haskell.nix
<__monty__>
la-jesystani: Just pinning haskell.nix isn't enough. To make a project deterministic you need to either be using stack or specify an index-state.
<__monty__>
So unless there's flake machinery that does this, I doubt it.
<la-jesystani>
whats an index state? im hoping to use as little stack/cabal as i need to because im not a fan
<__monty__>
Then haskell.nix may not be for you. The idea is you use stack or cabal and then haskell.nix on top only for that nix goodness.
<__monty__>
The index-state is a timestamp of your view on hackage. Cabal will treat hackage as if it looks like it did at said timestamp.
<__monty__>
How recent are your experiences with cabal? It's gotten a *lot* better with the v2-* commands.
<la-jesystani>
not super recent, maybe ill try using stack with haskell.nix, i really want reproducible builds so that might be alright
<__monty__>
la-jesystani: If you don't really have a use for stack as a cli I highly recommend going with cabal instead.
<__monty__>
Though if you can't be bothered to deal with version constraints, go with stack I guess.
<la-jesystani>
is there a way for cabal to output a list of the packages and versions its downloading? ideally id be able to get that and just run cabal2nix on each one so i could cache the packages
<__monty__>
Check out cabal-plan.
<la-jesystani>
cheers ill have a look
<__monty__>
la-jesystani: I can already tell you though that if you expect to be able to override your dependencies with nix packaged ones, that's not really how haskell.nix seems to work.
hekkaidekapus has quit [Ping timeout: 240 seconds]
hekkaidekapus has joined #haskell.nix
hekkaidekapus_ has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]
hekkaidekapus_ has quit [Ping timeout: 240 seconds]
la-jesystani has quit [Ping timeout: 264 seconds]
__monty__ has quit [Quit: leaving]
hekkaidekapus_ has joined #haskell.nix
fendor has quit [Remote host closed the connection]