File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,9 @@ export PATH=@bindir@:$PATH
3636if [[ -n " ${NIX_CLIENT_PACKAGE:- } " ]]; then
3737 export PATH=" $NIX_CLIENT_PACKAGE /bin" :$PATH
3838fi
39+ DAEMON_PATH=" $PATH "
3940if [[ -n " ${NIX_DAEMON_PACKAGE:- } " ]]; then
40- export NIX_DAEMON_COMMAND =" $NIX_DAEMON_PACKAGE /bin/nix-daemon "
41+ DAEMON_PATH =" ${ NIX_DAEMON_PACKAGE} : $DAEMON_PATH "
4142fi
4243coreutils=@coreutils@
4344
@@ -89,7 +90,7 @@ startDaemon() {
8990 # Start the daemon, wait for the socket to appear. !!!
9091 # ‘nix-daemon’ should have an option to fork into the background.
9192 rm -f $NIX_DAEMON_SOCKET_PATH
92- ${NIX_DAEMON_COMMAND :- nix daemon} &
93+ PATH= $DAEMON_PATH nix daemon &
9394 for (( i = 0 ; i < 30 ; i++ )) ; do
9495 if [[ -S $NIX_DAEMON_SOCKET_PATH ]]; then break ; fi
9596 sleep 1
You can’t perform that action at this time.
0 commit comments