mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 09:52:57 +02:00
nix: make /etc/profile.d/nix.sh not use word splitting
This will not work e.g. if the script is sourced by zsh. Instead, just adjust $PATH twice. Fixes #10336.
This commit is contained in:
parent
01e5f8892c
commit
85fc0a2c24
2 changed files with 3 additions and 6 deletions
|
@ -15,11 +15,8 @@ if ! test -L $HOME/.nix-profile; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export NIX_PROFILES="/nix/var/nix/profiles/default $HOME/.nix-profile"
|
export PATH=/nix/var/nix/profiles/default/bin:$PATH
|
||||||
|
export PATH=$HOME/.nix-profile/bin:$PATH
|
||||||
for i in $NIX_PROFILES; do
|
|
||||||
export PATH=$i/bin:$PATH
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ "$USER" = root -a ! -e $HOME/.nix-channels ]; then
|
if [ "$USER" = root -a ! -e $HOME/.nix-channels ]; then
|
||||||
echo "http://nixos.org/channels/nixpkgs-unstable nixpkgs" \
|
echo "http://nixos.org/channels/nixpkgs-unstable nixpkgs" \
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'nix'
|
# Template file for 'nix'
|
||||||
pkgname=nix
|
pkgname=nix
|
||||||
version=1.11.16
|
version=1.11.16
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
# Use /nix/var as suggested by the official Manual.
|
# Use /nix/var as suggested by the official Manual.
|
||||||
configure_args="--localstatedir=/nix/var"
|
configure_args="--localstatedir=/nix/var"
|
||||||
|
|
Loading…
Add table
Reference in a new issue