Glad you figured it out. I had a symlink in my normal account's home
directory's .nix-defexpr like yours, and it only had an effect when
running nix-env as my normal user. Was always setting NIX_PATH on the
command line when running nixos-rebuild.
On 1 June 2015 at 17:26, Jeffrey David Johnson wr
Hmm I have that too but it doesn't work. Is yours like this (with myhead
for mypkgs)?
$ ls ~/.nix-defexpr/ -al
...
lrwxrwxrwx 1 jefdaj users 22 Apr 17 10:46 mypkgs -> /path/to/mypkgs
...
I think I found the other/main problem: `NIX_PATH` isn't
sticking during `nixos-rebuild` because I put it i
I have a symlink from ~/.nix-defexpr/myhead to the nixpkgs tree I want to use.
James
On 1 June 2015 at 17:35, Jeffrey David Johnson wrote:
> Nevermind, that sets NIX_PATH but nix-env still errors out with:
>
> nix-env: src/libexpr/eval.hh:57: void nix::Bindings::push_back(const
> nix::Attr&): A
Nevermind, that sets NIX_PATH but nix-env still errors out with:
nix-env: src/libexpr/eval.hh:57: void nix::Bindings::push_back(const
nix::Attr&): Assertion `size_ < capacity' failed.
Aborted
Unless explicitly given the -f option.
Jeff
On Tue, 2 Jun 2015 00:31:35 +0200
Herwig Hochleitner wrote
Thanks, the mkForce was what I was missing!
Jeff
On Tue, 2 Jun 2015 00:31:35 +0200
Herwig Hochleitner wrote:
> I set NIX_PATH in environment.sessionVariables (with an mkForce, to
> override the builtin one). nix-env and everything else should pick it up,
> that way, since that's the location it'
I'd like all the nix tools to reference my package repository, which is
called mypkgs and re-exports nixpkgs with some custom ones added. I
base it on the latest nixos-unstable revision so there should be
binaries available.
Currently I set NIX_PATH using `environment.interactiveShellInit`. That
s