[Nix-dev] Proper way of adding custom nix expressions

Richard Wallace rwallace at thewallacepack.net
Mon Nov 5 18:30:27 CET 2012


D'oh! Looks like I need to work on my copy-paste skills.  Thanks!

Rich


On Mon, Nov 5, 2012 at 9:52 AM, Andres Loeh <ksnix at andres-loeh.de> wrote:

> Hi Richard.
>
> > pkgs : {
>   ^^^^
>
> You refer to this argument ...
>
> >   packageOverrides = self : rec {
>                        ^^^^
>
> but you should refer to this one.
>
> >     myHaskellPackages =
> >       let callPackage = pkgs.lib.callPackageWith myHaskellPackages; in
> >         pkgs.haskellPackages.override {
> >           extraPrefs = self : {
> >             boomerang = callPackage ./haskell/boomerang.nix {};
> >           };
> >         };
> >   };
> > }
>
> Cheers,
>   Andres
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20121105/c7afee7b/attachment.html 


More information about the nix-dev mailing list