[<<][nixos][>>][..]
Sat Nov 18 10:50:42 EST 2017

missing man pages

"nix-env -i nix" did install it in the store:

tom@phoo:/nix/store$ find -name nix-env.1.gz
./30yi6znfz3vn6fqpaz9l5xxxj1xcjf2v-nix-1.11.14-man/share/man/man1/nix-env.1.gz

but it is not accessible from the profile

I have no idea how to make sure this ends up in the profile.

After running "nix-collect-garbage" the file is gone.

It seems this has something to do with the original LXC setup.

On zora, the man page is installed in:

/nix/var/nix/profiles/system/sw/share/man/man1/nix-env.1.gz

Check this out:

https://github.com/NixOS/nixpkgs/issues/24717


.config/nixpkgs/overlays/default.nix:

self: super:                                                                                                                                                                    
{                                                                                                                                                                               
  # add man to the outputs to install for nix                                                                                                                                   
  nix = super.nix.overrideAttrs (oldAttrs: {                                                                                                                                    
     meta = oldAttrs.meta // {                                                                                                                                                  
       outputsToInstall = [ "out" "man" ];                                                                                                                                      
     };                                                                                                                                                                         
  });                                                                                                                                                                           
}  



tom@ph:~/.config$ ln -s ../dot/config/nixpkgs .

Ok that worked.

So what is an overlay?
https://nixos.org/nix-dev/2016-December/022386.html
https://nixos.org/nixpkgs/manual/  (grep for "overlay")




[Reply][About]
[<<][nixos][>>][..]