[Nix-dev] nix-env -i can't find package override I defined
Bjørn Forsman
bjorn.forsman at gmail.com
Sun Feb 22 09:33:23 CET 2015
22. feb. 2015 08:29 skrev "Cody Goodman" <codygman.consulting at gmail.com>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150222/d6d7c46b/attachment.html
More information about the nix-dev
mailing list