22. feb. 2015 08:29 skrev "Cody Goodman" <[email protected]>
følgende:
[...]
> 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-env does not read configuration.nix. If you want that, put your
packageOverrides in ~/.nixpkgs/config.nix instead.

I've done the same mistake myself. I think it is a bit confusing that
nix-env ignores the system-wide packageOverrides. I think it would be
better if it merged those packageOverrides (if possible).

- Bjørn
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to