[<<][nixos][>>][..]
Sun Oct 27 11:18:28 EDT 2019

profile workaround

fhs doesn't seem to work with "nix-shell --run"

(:) tom@phoo:~/exo/br$ nix-shell --run "ls -al /bin"
total 4
drwxr-xr-x 1 root root   4 Oct 26 09:35 .
drwxr-xr-x 1 root root 234 Oct 26 09:46 ..
lrwxrwxrwx 1 root root  63 Oct 26 09:35 sh -> /nix/store/9xg3d7r173zzybgh8v4lhf3zcf0wx51g-bash-4.4-p12/bin/sh

The problem might be this:

  shellHook = ''
    if [ -z "$PS1" ]; then
      :
    else
      exec exo-env
    fi
  '';


So this:

  fhs = pkgs.buildFHSUserEnv {
  name = "exo-env";

will eventually set up that "exo-env" program.


EDIT: cleaned it up a bit.



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