You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may get an error in the installation phase, because the user may not have the permission to write to /nix/store
It didn't install, but it built.
We're able to cd into hello-2.10 and type make, because now it's available.
Well for me this isn't true, because it says make: command not found
[jane@nixos:~/empty]$ nix-shell hello.nix
[nix-shell:~/empty]$ ls
autotools.nix builder.sh hello-2.10 hello-2.10.tar.gz hello.nix
The builder.sh sets errexit shell option on the first line, making the shell exit on an error.
source shell builtin will run a script as if you manually ran the individual script lines in the active shell. So, unlike running it in a subprocess using bash ./buider.sh, the shell spawned using nix-shell will be the one running the commands and the one to exit.
I am not sure how it could have ever worked for anyone. Unless set -e was added to the builder after chapter 10 was written without updating it (but that does not seem to be the case looking at the commit history).
Solve this.
Has same issue, but with removing 2>/dev/null from find command gives me point, that the find command not found itself. So, i patch the baseInputs and add findutils to them.
In Pill Nr.10 it says:
Well for me this isn't true, because it says make: command not found
This is because somehow the nix shell exited together with the "source builder.sh"- command
You can see this because before it said [nix-shell] now it says [jane@nixos] .
I don't know enough about nix-shell to decide whether this is an issue with the tutorial or an issue with nix-shell.
If i comment the following lines:
in the builder.sh I can use make afterwards presumably because the command isn't failing and therefore it doesn't drop me out of the nix-shell.
The text was updated successfully, but these errors were encountered: