-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the 'nix develop' command #34
Add support for the 'nix develop' command #34
Conversation
As already argued in #12 (comment), I deliberately didn't support |
Let me know if we're not talking about the same thing, but For these kinds of workflows, this PR is required to activate a shell other than bash (such as |
fwiw, I also tested this on zsh (it works) using this overlay: any-nix-shell = prev.any-nix-shell.overrideAttrs (_old: rec {
version = "2537e5c6901ef934f8f44d61bcfe938b0fc9fa71";
src = prev.fetchFromGitHub {
owner = "haslersn";
repo = "any-nix-shell";
rev = version;
sha256 = "sha256-j1DE0WTBGLmBLoPmqST9YVj9Jc4Mp8WXQILmPBzRlbM=";
};
patches = [
(prev.fetchpatch {
url = "https://github.com/haslersn/any-nix-shell/pull/34.patch";
sha256 = "sha256-r+sBN/akxip9QJpRzHRMUAUoRHzMlLx4K/SP38OQQOE=";
})
];
}); |
This doesn't work on fish.
The correct syntax is |
@bryceberger it seems there is a semicolon or linebreak missing before the |
Yep, any of the three would work. |
This PR is based on the fork mentioned in #30. I chose to make a separate fork instead of using @manuelbb-upb 's fork since theirs included a flake, which doesn't seem necessary to implement this feature. I tested by overriding the
nixpkgs
version like so:where
inputs.any-nix-shell-with-develop
is from my flake inputs:I use
zsh
, and don't know/use the other shells supported here much or at all, so this has only been tested inzsh
.