[Nix-dev] per project env conf

Luca Bruno lethalman88 at gmail.com
Thu Jan 15 15:16:36 CET 2015


On 15/01/2015 15:10, Catonano wrote:
> Hello,
>
> how do I set a development environment in my project folder ?
>
> Ideally I'd like to deploy the env setup together with the code so
> people won't get mad in setting up an env in order to contribute to
> the project
>
> I set my .nixpkgs/config.nix to
>
> {
>   packageOverrides = pkgs: with pkgs; {
>    openArpaEnv = pkgs.myEnvFun {
>         name = "openArpa-env";
>         buildInputs = with pkgs.python27Packages; [
>           python
>           xlrd
>
>         ];
>     };
>   };
> }
>
> and it worked
>
> Then I moved .nixpkgs/config.nix to projects/openArpa/default.nix
>
> but I can't build the env anymore.
let pkgs = import <nixpkgs> {};
in pkgs.myEnvFun {
        name = "openArpa-env";
        buildInputs = with pkgs.python27Packages; [
          python
          xlrd

        ];
    };

Then nix-shell.


More information about the nix-dev mailing list