[Nix-dev] nix-env -i can't find package override I defined

Cody Goodman codygman.consulting at gmail.com
Sun Feb 22 08:29:34 CET 2015


I have the following in my configuration.nix and I'm using NixOS
15.05pre58123.9775f46 and tracking the unstable channel:

    packageOverrides = pkgs: with pkgs; {
      helloEnv = pkgs.myEnvFun {
            name = "someEnvName";
            buildInputs = [ hello ];
      };

     sdlEnv = pkgs.myEnvFun {
         name = "sdl";
         buildInputs = [ stdenv SDL SDL_image SDL_ttf SDL_gfx cmake SDL_net
pkgconfig ];
     };

      # linuxPackages = linuxPackages // {
      #   nvidia_x11 = linuxPackages.nvidia_x11.overrideDerivation ( attrs:
{
      #     name = "nvidia-x11-346.35-${pkgs.linuxPackages.kernel.version}";
      #     src = fetchurl {
      #       url = "
http://us.download.nvidia.com/XFree86/Linux-x86_64/346.35/NVIDIA-Linux-x86_64-346.35.run
";
      #       sha256 =
"11nhjhx8a1piz725m8z02qxr3xd7y839vjx56sjdvax2qyxsq9c6";
      #     };
      #  });
      # };

    };
};

For some reason nix can't seem to find it...

~ $ grep -A3 helloEnv /etc/nixos/configuration.nix
53:      helloEnv = pkgs.myEnvFun {
54-            name = "someEnvName";
55-            buildInputs = [ hello ];
56-      };
~ $ nix-env -i env-someEnvName
error: selector ‘env-someEnvName’ matches no derivations
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150222/89c32065/attachment-0001.html 


More information about the nix-dev mailing list