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
mariatsji has joined #haskell.nix
mariatsji has quit [Ping timeout: 260 seconds]
mariatsji has joined #haskell.nix
mariatsji has quit [Ping timeout: 256 seconds]
_rvl_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
_rvl has joined #haskell.nix
_rvl has quit [Remote host closed the connection]
_rvl has joined #haskell.nix
mariatsji has joined #haskell.nix
<typetetris> To pass flags to cabal, I tried using `configureArgs` as parameter to `project`, but it doesn't look like it is working. Was it the right approach? What to do instead?
<typetetris> The approach to do everything through the cabal/stack file is really cool.
<typetetris> okay `allow-newer: *:base` did it. Yay!
<typetetris> Do I have to worry about those warnings? `Warning: Requested index-state2020-09-05T00:00:00Z is newer than 'hackage.haskell.org-at-2020-09-05T000000Z'! Falling back to older state`
<ocharles> typetetris: is that the only warning you get? I'm guessing you haven't specified an index state?
<typetetris> ocharles: index state is specified in `cabal.project` as `index-state: 2020-09-05T00:00:00Z`.
<ocharles> What if you bring that back days?
<ocharles> Oh, that's weird - the warning is the same day twice
<typetetris> Yes, first tried with index-state: `2020-09-06T00:00:00Z` got the same warning for the `2020-09-06` then, so I stepped back a day. Fallback state changed, but the warning remained.
<ocharles> Hmm. I put my index-state in my call to `cabalProject`, like this: `index-state = "2020-09-02T00:00:00Z";`
<ocharles> Maybe try that?
tchouri1 is now known as hekkaidekapus
<typetetris> ocharles: Great, warning is gone!
<ocharles> Oh, interesting1
<ocharles> Oh, interesting!
<ocharles> Whoops, forgot you can't edit messages on IRC :)
o1lo01ol1o has joined #haskell.nix
<typetetris> Strange I use `haskellNix.sources.nixpkgs-2003` and have cache.nixos.org and iohk.cachix.org, but it still insist on building gtk-something If I use `import nixpkgsSrc nixpkgsArgs` for nixpkgs as in the scaffolding from the tutorial.
<typetetris> Also for jdk8u ...
<ocharles> I think haskell.nix has an overlay that causes GTK to rebuild, and I doubt iohk's cache has built GTK
<ocharles> https://github.com/input-output-hk/haskell.nix/blob/master/overlays/gobject-introspection.nix may also contribute to a GTK rebuild, I could imagine that might need harfbuzz
<ocharles> If this is unacceptable, one option may be to import `nixpkgs` twice - once for haskell.nix, and once for everything else
<typetetris> Might be, so I stick to mixing different versions/flavours of nixpkgs. Just paying attention to get all haskell stuff from the haskell.nix one.
<typetetris> Hmm `cleanSourceWith` doesn't allow me to use a store path as src? I am generating code and want to add a link to that generated code to the source, so I have some `mkDerivation`-Stuff to copy together the new source dir, but now I get the error `error: string '/nix/store/4s6ylgw0gzpjhchxglzzb5wbyqiqdkrm-src' cannot refer to other paths, at <redacted>/clean-source-with.nix:109:52`
<ocharles> I think there are hacks here but I forget what they are. You'll have more luck in #nixos for that one!
o1lo01ol1o has quit [Remote host closed the connection]
fendor has joined #haskell.nix
tchouri has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]
__monty__ has joined #haskell.nix
fendor has quit [Remote host closed the connection]
<ocharles> Is there anyway to build something from Git and _not_ have it as a source-repository-package? I need LumiGuide/opencv, but the shell produced by shellFor can't build it (but oddly it can build purely with Nix)
<ocharles> Ok, jamming it into `pkg-def-extras` seems to have worked.
<ocharles> Amusingly cabal-install-3.4 has the correct behavior (it won't try and build them as local packages... I think), but I don't know how to use _that_! :D
mariatsji has quit [Remote host closed the connection]
fendor has joined #haskell.nix
fendor has quit [Read error: Connection reset by peer]
fendor has joined #haskell.nix
mariatsji has joined #haskell.nix
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #haskell.nix
mariatsji has quit [Ping timeout: 244 seconds]
<michaelpj> ocharles: I think this doesn't apply to you (since it sounds like it's a special package of your own that's not on hackage), but if the package is already in the build plan but you just want to override the source, you can set `packages.<foo>.src = fetchFromGitHub ...` in the module options. You could also consider custom package resolvers, which I believe we support (someone added it) but I don't know much about.
<michaelpj> Otherwise, yeah, `pkg-def-extras` is probably your best bet
<ocharles> michaelpj: no, the package is on hackage - we just need a fork. That `src`override sounds like it could work too though, yea
<ocharles> Probably a bit cleaner than putting it pkg-def-extras
<ocharles> I'd like to work out why my shell can't build it, but that's for another time
<michaelpj> seems weird indeed
mariatsji has joined #haskell.nix
fendor has quit [Read error: Connection reset by peer]
fendor has joined #haskell.nix
mariatsji has quit [Ping timeout: 246 seconds]
mariatsji has joined #haskell.nix
mariatsji has quit [Ping timeout: 260 seconds]
mariatsji has joined #haskell.nix
<typetetris> Does haskell.nix respect a cabal.freeze file?
<angerman> typetetris: if cabal respects it during plan generation, so will haskell.nix.
<typetetris> nice
<angerman> haskell.nix uses the plan.json as the foundation, so what ever cabal puts in there should be respected by haskell.nix.
<typetetris> So if I can get plain cabal to build my project, nixifying it with haskell.nix should then be easy?
<michaelpj> that's the goal: if it works in cabal, it should work in haskell.nix. If not, it's a bug
<typetetris> Maybe I overlooked it, but that would be a great slogan to put on the fist piece of documentation, someone reads :)
fendor has quit [Quit: Leaving]
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #haskell.nix
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #haskell.nix
mariatsji has quit [Remote host closed the connection]
tchouri is now known as hekkaidekapus
mariatsji has joined #haskell.nix
mariatsji has quit [Remote host closed the connection]
tchouri has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]
tchouri is now known as hekkaidekapus
tchouri has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]
tchouri is now known as hekkaidekapus
mariatsji has joined #haskell.nix
__monty__ has quit [Quit: leaving]
mariatsji has quit [Ping timeout: 244 seconds]