[Nix-dev] Haskell-env (via nix-shell) - am I doing this right?
Peter Jones
mlists at pmade.com
Fri May 22 21:02:46 CEST 2015
"Ricardo M. Correia" <rcorreia at wizy.org> writes:
> On Fri, May 22, 2015 at 8:16 PM, Peter Jones <mlists at pmade.com> wrote:
>
>> To start out, I'm using HaskellNG and a recent version of nixpkgs where
>> HaskellNG is the default. Here are the components I use with some
>> examples:
>>
>> 1) I write a default.nix that describes my dependencies:
>>
>> https://github.com/pjones/byline/blob/master/default.nix
>
>
> Thanks for the example!
>
> Out of curiosity, why is that "shellHook" stuff needed on every package?
>
> Couldn't "ghcWithPackages" export those variables instead (as a "setupHook
> ")?
I stole those lines from someone else and haven't taken the time to
verify that they are actually needed. Maybe someone with more knowledge
than me can speak to this point.
--
Peter Jones, Founder, Devalot.com
Defending the honor of good code
More information about the nix-dev
mailing list