Custom Emacs gets killed

When I try nix-shell --arg pkgs 'import <nixpkgs> {}' shell.nix in the Shell, the process suddenly ends after few seconds with “Killed” message.

How can I fix this?

Hey @sepiabrown!

You might need to use nixpkgs-stable-22_11 instead of just nixpkgs. However, it looks like you’ve changed your Repl so we aren’t able to reproduce the issue.