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: 272 seconds]
mariatsji has joined #haskell.nix
mariatsji has quit [Ping timeout: 260 seconds]
mariatsji has joined #haskell.nix
mariatsji has quit [Ping timeout: 246 seconds]
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]
mariatsji has joined #haskell.nix
<michaelpj> hexagoxel: you probably want`collectComponents`
acarrico has quit [Ping timeout: 272 seconds]
arianvp has quit [Quit: WeeChat 2.7.1]
arianvp has joined #haskell.nix
tchouri has joined #haskell.nix
hekkaidekapus has quit [Ping timeout: 240 seconds]
tchouri is now known as hekkaidekapus
terrorjack has quit []
terrorjack has joined #haskell.nix
acarrico has joined #haskell.nix
hexaglow has quit [Quit: Connection closed for inactivity]
fendor has joined #haskell.nix
<ptitfred> Hi ; I have a test suite depending on an non-haskell executable, what would be the preferred way to make it work? I've looked at the documentation with no success, but it's maybe a nix thing rather than a haskell.nix thing and I couldn't tell :)
hhefesto has joined #haskell.nix
<michaelpj> ptitfred: this is a bit awkward, since there's no cabal configuration for something like "run-tool-depends", which is what this is. At the moment the best solution is to extend `PATH` in `preCheck`. This is ugly, but nobody has implemented a nicer way yet. Exampel: https://github.com/input-output-hk/plutus/blob/master/nix/haskell.nix#L72
<hhefesto> Kind and knowledgeable nix gurus: hello :) good morning from Querétaro, México.
<hhefesto> In my work (an open source project) we are trying to refactor to use haskell.nix (https://github.com/Stand-In-Language/stand-in-language)
<hhefesto> but I'm days worth of trouble trying to get the overlay correct
<hhefesto> The previous working shell.nix (we didn't have a default.nix) is: https://github.com/Stand-In-Language/stand-in-language/blob/a9113493fb797061a7a6207b7d09ed680da4e444/shell.nix
<hhefesto> this is my new default.nix using haskell-nix: https://gist.github.com/hhefesto/9cce7e04e84e3f5be7787bfcdd61206b
<hhefesto> but I get `error: attribute 'gc' missing, at /home/hhefesto/src/telomare/default.nix:50:36` after I try to build (nix-build -A telomare.components.library)
<hhefesto> if anyone has any sugestion, I would be very greatful
<michaelpj> hhefesto: so it looks like what you're trying to do is add a new mapping to the *system* package mapping. `pkg-def-extras` is for *Haskell* packages, so that won't work (you don't want a Haskell package called `gc!). Try reading this and see if it helps: https://input-output-hk.github.io/haskell.nix/tutorials/pkg-map/
<michaelpj> it even looks like you have a nixpkgs overlay commented out above, which should be the thing that you need
<hhefesto> I have plenty
<hhefesto> lol
<hhefesto> let me read what you sent and hopefully I can come back with good news
<hhefesto> thanks you!
<hhefesto> oh! I have read that
<hhefesto> the commented overlay, I have it at the top too
<hhefesto> in a let bind
<hhefesto> a bit reduced (withouth `jumper`)
<hhefesto> And I try to apply the overlay to `haskellNix ? import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz") { overlays = [ gcOverlay ]; }`
<hhefesto> on line 10 of the gist
<michaelpj> hhefesto: ah, you're using a mix of the old and new ways of importing haskell.nix. Now it's just an attrset with bits in it, not a nixpkgs itself. So passing in overlays at the top does nothing, you want to pass it in the place where you actually import your nixpkgs, i.e. line 28
<hhefesto> this: `pkgs = (import nixpkgsSrc nixpkgsArgs) // { overlays = [ gcOverlay ]; };` errored similarly
<hhefesto> `error: The Nixpkgs package set does not contain the package: gc (system dependency).`
<hhefesto> between: `pkg-def-extras = [ (hkg : { packages = { gc = pkgs.boehmgc; }; }) ];` and `pkg-def-extras = [ (hkg : { gc = pkgs.gc; }) ];` is there a better one? I get similar but different errors with that
<michaelpj> `pkgs = (import nixpkgsSrc ( nixpkgsArgs // { overlays = [ gcOverlay ]; });`
<michaelpj> overlays are part of the arguments to nixpkgs
<hhefesto> ohh!
<hhefesto> thanks!
<michaelpj> what you did was add an attribute "overlays" to your final package set there ;)
<hhefesto> interesting!
<hhefesto> `pkgs = (import nixpkgsSrc ( nixpkgsArgs // { overlays = [ gcOverlay ]; }));` gave me `error: attribute 'haskell-nix' missing, at /home/hhefesto/src/telomare/default.nix:38:1`
<michaelpj> hhefesto: er yes, you need to merge it. Something like `nixpkgsArgs // { overlays = nixpkgsArgs.overlays ++ [gcOverlay];}` otherwise you're overwriting the overlays in `nixpkgsArgs`
<hhefesto> yei!!!
<hhefesto> Thank you very very much!
<hhefesto> definitely going to brag that MPJ helped me <3
<michaelpj> lol I need a pseudonym
<hhefesto> meant it as a good thing, but I guess privacy is also a good thing
<hhefesto> anyways, much love to all nix guru's
<hhefesto> I hope I'll be able to call myself one in some time
<michaelpj> the more the merrier :)
<michaelpj> I swear half of it is just remembering the types of common stuff so you can run the typechecker in your head D:
<hhefesto> lol
<hhefesto> hopefully type errors will improve in nix
<hhefesto> to not run it in your head
<michaelpj> well, it's never going to have a typechecker I fear, so you do kind of just have to remember stuff...
<michaelpj> when we really get a viable Nix successor lang that's statically typed I'll be there like a flash
<hhefesto> x2
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #haskell.nix
mariatsji has quit [Remote host closed the connection]
__monty__ has joined #haskell.nix
proofofkeags has joined #haskell.nix
fendor has quit [Remote host closed the connection]
fendor has joined #haskell.nix
mariatsji has joined #haskell.nix
mariatsji has quit [Ping timeout: 246 seconds]
NinjaTrappeur has quit [Quit: WeeChat 2.8]
NinjaTrappeur has joined #haskell.nix
fendor has quit [Read error: Connection reset by peer]
fendor has joined #haskell.nix
__monty__ has quit [Quit: leaving]
fendor has quit [Remote host closed the connection]
ilmu has quit [Remote host closed the connection]
mariatsji has joined #haskell.nix
mariatsji has quit [Ping timeout: 272 seconds]
proofofkeags has quit [Ping timeout: 256 seconds]