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
__monty__ has quit [Quit: leaving]
pjb has quit [Ping timeout: 244 seconds]
dsal has quit [*.net *.split]
dsal has joined #haskell.nix
pjb has joined #haskell.nix
clever_ has joined #haskell.nix
clever has quit [Ping timeout: 240 seconds]
fendor has joined #haskell.nix
clever_ has joined #haskell.nix
clever_ has quit [Changing host]
clever_ is now known as clever
clever_ has joined #haskell.nix
clever_ has joined #haskell.nix
clever_ has quit [Changing host]
clever has quit [Disconnected by services]
clever_ is now known as clever
__monty__ has joined #haskell.nix
jbetz has quit [Ping timeout: 272 seconds]
ajmcmiddlin has quit [Ping timeout: 272 seconds]
ajmcmiddlin has joined #haskell.nix
jbetz has joined #haskell.nix
<__monty__> Is the recommended way to get cabal to specify it in `tools`?
<angerman> __monty__: huh?
fendor_ has joined #haskell.nix
fendor has quit [Ping timeout: 240 seconds]
<__monty__> angerman: Yes, but I remember michaelpj not being a fan of the tools construct.
<angerman> He hasn’t seen the light yet. (duck)
<__monty__> Ok, I'll go with tools for now.
<michaelpj> Everyone else likes it, I'm just a Grinch :p
<__monty__> Not trying to stir the pot : )
<angerman> michaelpj: perfect time of the year to be the grinch.
DigitalKiwi has quit [Quit: quite.]
DigitalKiwi has joined #haskell.nix
o1lo01ol1o has joined #haskell.nix
hekkaidekapus{ has joined #haskell.nix
hekkaidekapus_ has quit [Ping timeout: 240 seconds]
hekkaidekapus{ has quit [Ping timeout: 240 seconds]
hekkaidekapus{ has joined #haskell.nix
<shapr> I've started an empty project with "nix-shell -p cabal-install ghc --run 'cabal init'"
<shapr> but then my very slightly modified default.nix is asking for ghc8102 and the generated cabal has a base constraint that's too low
<shapr> here's my default.nix https://pastebin.com/SH8Ec04s
<shapr> I changed from nixpkgs-2003 to nixpkgs-2009 and I switched out cleanGit to cleanSourceHaskell
<shapr> after generating my default files, I immediately tried to build the project with nix-build
<shapr> after modifying my zoop.cabal to allow higher versions of the base library, now I have a new problem
<shapr> value is null while a set was expected?
<shapr> any hints or suggestions? or a heuristic for debugging that problem?
<__monty__> That sounds terrible to debug. Can't spot anything wrong either.
<__monty__> One thing, you don't need the nixpkgs and nixpkgsArgs stuff if you don't use it `import (haskell.nix tarball) {}` is nice and simple.
hekkaidekapus{ has quit [Quit: hekkaidekapus{]
hekkaidekapus has joined #haskell.nix
<michaelpj> shapr: `nix-build` on a file which is an attribute set will build every derivation inside it. In this case, I'm assuming your default.nix is just the `cabalProject` call or whatever. That contains a coverage report derivation, which you almost certainly *don't* want to build. So I suggest not doing that. But apart from that, it looks like you might have found a bug in the coverage report function!
<shapr> huh, that's exciting
domenkozar[m] has quit [Ping timeout: 240 seconds]
siraben has quit [Ping timeout: 244 seconds]
ptival[m] has quit [Ping timeout: 246 seconds]
polls45 has quit [K-Lined]
jonge[m] has quit [Ping timeout: 272 seconds]
stites[m]1 has quit [Ping timeout: 240 seconds]
michaelpj has quit [Ping timeout: 244 seconds]
Ericson2314 has quit [Ping timeout: 260 seconds]
<shapr> so, does that mean I called this incorrectly?
ptival[m] has joined #haskell.nix
stites[m]1 has joined #haskell.nix
jonge[m] has joined #haskell.nix
domenkozar[m] has joined #haskell.nix
<__monty__> shapr: I guess you're supposed to try to build (your default.nix).components.library/exe.MyName
siraben has joined #haskell.nix
<shapr> __monty__: ah, thanks!
<shapr> so for this default.nix https://pastebin.com/SH8Ec04s what's the MyName ? Should I change the text in quotes on line 18 to "zoop" since that's the name of my cabal project?
<__monty__> shapr: Or `...components.exes.all` unless that's been removed, to build all your exes. Oh and it's library/exes, plural. (I think library is singular since a cabal file can only have one.)
<shapr> with the three dots?
<__monty__> Need your cabal file to find out the Myname.
<shapr> the executable is named zoop
<__monty__> (import default.nix {}).components.exes.zoop
<shapr> I hand that to nix-build ?
<__monty__> Not verbatim but yes.
michaelpj has joined #haskell.nix
Ericson2314 has joined #haskell.nix
* shapr returns from cooking
<shapr> __monty__: ELI5 ?
<__monty__> I never nix build my packages from the commandline tbh.
<shapr> oh, how do you do it?
<__monty__> But I think for nix-build it'd be `nix-build -E '(import ./default.nix {}).components.exes.zoop`
<__monty__> I always have my nix-shell environment loaded by direnv+lorri, so I have cabal available for builds (nix doesn't do incremental builds as fine-grained, though haskell.nix maybe fixes this?). And a couple packages I have in overlays and those are built from my home-manager config.
julm has quit [Ping timeout: 256 seconds]
julm 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]
__monty__ has quit [Quit: leaving]