Open Warbo opened 6 years ago
The bug seems to be more that the quotes you provided have been lost:
[+] Running command: sudo nix-build -E with import <nixpkgs> {}; bash
should be
[+] Running command: sudo nix-build -E 'with import <nixpkgs> {}; bash'
e.g., the very thing you wrote in the first place!
I tried running the following, as a simple "hello world" test:
It looks like
/bin/sh
is trying to interpret<nixpkgs>
as a file redirection, e.g. like we might do</dev/null
.I wrapped the whole command in quotes and it worked:
This might be worth documenting, especially since the README's example of
nix-build --no-out-link -A shipit release.nix
isn't quoted; that example just-so-happens to work because none of its arguments contain spaces or shell characters like<