Re: [Nix-dev] Dealing with non-Bash /bin/sh on non-NixOS

2012-11-05 Thread Peter Simons
Hi Ludovic,

 > [Things] eventually fail because stdenv, and sometimes build systems,
 > assume that /bin/sh is Bash.

maybe that is a bad assumption? Wouldn't it be nice if our stdenv worked
with any POSIX shell, not just Bash?

Take care,
Peter

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2012-11-05 Thread Richard Wallace
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  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
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2012-11-05 Thread Andres Loeh
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
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev