zsh-nix-shell: --stdin: command not found on v0.6 darwin
Issue description
I’m trying this plugin out, but ran to an issue upon running nix-shell
Output: /private/tmp/nix-shell-20000-0/rc: line 4: --stdin: command not found
I tried to find the file, it doesn’t exist
⚡➜ find /private/tmp/nix-shell*
/private/tmp/nix-shell-10174-0
/private/tmp/nix-shell-10174-0/.attr-0
/private/tmp/nix-shell-10174-0/rc
/private/tmp/nix-shell-10469-0
/private/tmp/nix-shell-10469-0/.attr-0
/private/tmp/nix-shell-10469-0/rc
/private/tmp/nix-shell-10590-0
/private/tmp/nix-shell-10590-0/.attr-0
/private/tmp/nix-shell-10590-0/rc
/private/tmp/nix-shell-10953-0
/private/tmp/nix-shell-10953-0/.attr-0
/private/tmp/nix-shell-10953-0/rc
/private/tmp/nix-shell-11399-0
/private/tmp/nix-shell-11399-0/.attr-0
/private/tmp/nix-shell-11399-0/rc
/private/tmp/nix-shell-93229-0
/private/tmp/nix-shell-93229-0/.attr-0
/private/tmp/nix-shell-93229-0/rc
Did you install the plugin according to the installation guide? If not, does the issue persist if you do install it that way? Yes, at first, my installation was with zsh-zap, but after that, I changed to plain zsh but still doesn’t work
Steps to reproduce
- install based on the plain zsh instructions
- create
shell.nixin a project, i.e
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
buildInputs = [ cowsay ];
}
- run
nix-shell
Technical details
Please run the following commands and paste the results:
command nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-darwin"`
- host os: `Darwin 22.4.0, macOS 10.16`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.15.0`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
zsh --versionzsh 5.9 (x86_64-apple-darwin22.4.0)
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 15 (5 by maintainers)
With the help of a friends Mac I debugged parts of the script. Does the current version on master work now?
That doesn’t work:
ps: illegal argument: oHow’s this:
lsof -p $$ | awk '$4=="txt" {print $9}' | head -n 1?nix-shell not foundis not really what’s happening, the error is--stdin: command not foundSame here. I am on ARM darwin. Running
readlink /proc/$$/exeproduces no output. I would suggest changing the name of the issue, though, it is confusing right now.