[Nix-dev] nix-env points ~/.nix-profile to symlinks in home

Lluís Batlle i Rossell viric at viric.name
Fri Jul 18 16:38:10 CEST 2014


You have to set ~/.nix-profile pointing to your profile.
It's usually /nix/var/nix/profiles/...something, but you have it set to
~/gtksourceview. A very weird profile, yes.

On Fri, Jul 18, 2014 at 03:58:59PM +0200, Miroslav Puda wrote:
> nix-env is making weird symlinks named gtksourceview* in my $HOME. Is 
> that normal? btw. I have segfaults in mousepad text editor (reported on 
> github) and it might be related to gtksourceview - coincidence?
> 
> $ nixos-version
> 14.04.368.6756ec2 (Baboon)
> 
> $ ll ~ | grep gtk
> lrwxrwxrwx 1 mirpa users 20 Jul 18 11:07 gtksourceview -> 
> gtksourceview-2-link
> lrwxrwxrwx 1 mirpa users 60 Jul 17 18:07 gtksourceview-1-link -> 
> /nix/store/m5cz49rrf9f1h5b7zyfamcvgc72ym0h6-user-environment
> lrwxrwxrwx 1 mirpa users 60 Jul 18 11:07 gtksourceview-2-link -> 
> /nix/store/kk6sn9lp0cv2lakd7m6vr641h5vbfmi6-user-environment
> 
> $ ll -a ~ | grep nix-profile
> lrwxrwxrwx 1 mirpa users 13 Jul 16 07:02 .nix-profile -> gtksourceview
> 
> $ which wine; which htop
> /home/mirpa/.nix-profile/bin/wine
> /home/mirpa/.nix-profile/bin/htop
> 
> $ rm gtksourceview*
> 
> $ htop
> The program ‘htop’ is currently not installed. You can install it by typing:
> nix-env -i htop
> 
> $ ll ~ | grep gtk
> 
> $ nix-env -i htop
> installing `htop-1.0.2'
> building path(s) 
> `/nix/store/h2dd3ab9a7fwlz782jvikmqwj7691fxq-user-environment'
> created 2 symlinks in user environment
> 
> $ ll ~ | grep gtk
> lrwxrwxrwx 1 mirpa users 20 Jul 18 15:38 gtksourceview -> 
> gtksourceview-1-link
> lrwxrwxrwx 1 mirpa users 60 Jul 18 15:38 gtksourceview-1-link -> 
> /nix/store/h2dd3ab9a7fwlz782jvikmqwj7691fxq-user-environment
> 
> $ winecfg
> The program ‘winecfg’ is currently not installed. You can install it by 
> typing:
> nix-env -i wine
> 
> $ nix-env -i wine
> installing `wine-1.6.2'
> building path(s) 
> `/nix/store/8kbak59xd23347f5rdxdfz88vi60cfmk-user-environment'
> created 62 symlinks in user environment
> 
> $ ll ~ | grep gtk
> lrwxrwxrwx 1 mirpa users 20 Jul 18 15:39 gtksourceview -> 
> gtksourceview-2-link
> lrwxrwxrwx 1 mirpa users 60 Jul 18 15:38 gtksourceview-1-link -> 
> /nix/store/h2dd3ab9a7fwlz782jvikmqwj7691fxq-user-environment
> lrwxrwxrwx 1 mirpa users 60 Jul 18 15:39 gtksourceview-2-link -> 
> /nix/store/8kbak59xd23347f5rdxdfz88vi60cfmk-user-environment
> 
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list