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
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to