[Nix-dev] myEnvFun rebuilds gcc

Sergey Mironov ierton at gmail.com
Tue Jan 24 23:39:35 CET 2012


2012/1/25 Lluís Batlle i Rossell <viric at viric.name>:
> On Wed, Jan 25, 2012 at 02:17:58AM +0400, Sergey Mironov wrote:
>> Hello. I am trying to setup an dev environment with the following
>> expression in ~/.nixpkgs/config.nix
>>
>>     gogrEnv = pkgs.myEnvFun rec {
>>       name = "gogr";
>>       buildInputs = [
>>         pkgconfig
>>         cmake
>>         qt4
>>         gcc
>>         ];
>>     };
>>
>
> I think it's about the magical overriding of pkgs with 'stdenv.overrides' (code
> in all-packages.nix). To have gcc there, I usually put 'stdenv' in the list.
>
> Regards,
> Lluís.

Hm. Yes, overrides looks like a magic. Which list do you mean? I've tried

    gogrEnv = pkgs.myEnvFun rec {
      name = "gogr";
      buildInputs = [
        ...
        gcc
        stdenv
        ];

but nothing has changed.


More information about the nix-dev mailing list