nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.16k stars 65 forks source link

activation with ssh-ng - 'ssh': No such file or directory #240

Open c0decafe opened 1 year ago

c0decafe commented 1 year ago

Will try to debug next week, unless someome beats me to it.

Both latest tag and HEAD cannot switch when using a remote builder:

 Building activation package...
 warning: Git tree '/data/data/com.termux.nix/files/home/nix-config' is dirty
 Executing activation script...
 warning: Git tree '/data/data/com.termux.nix/files/home/nix-config' is dirty
 Activating linkBinSh
 Activating linkUsrBinEnv
 Activating setPriorityHomeManagerPath
 Activating installLogin
 Activating installLoginInner
 Activating installPackages
 replacing old 'nix-on-droid-path'
 installing 'nix-on-droid-path'
 error: unable to execute 'ssh': No such file or directory
 cannot build on 'ssh-ng://builder': error: cannot open connection to remote store 'ssh-ng://builder': error: unexpected end-of-file
 Failed to find a machine for remote build!
 derivation: bhb6qvhcw3niq4khmlzasg0g0ia3z7ag-user-environment.drv
 required (system, features): (builtin, )
 1 available machines:
 (systems, maxjobs, supportedFeatures, mandatoryFeatures)

openssh has an explicit entry in environment.packages.

Gerschtli commented 1 year ago

The PATH for the activation script is independent of your local environment.. You would need to add openssh to the PATH of the activation script. But I am wondering why anything would need to be built during activation script execution. Should be done before hand. Can you post your config and your commands?