8000 feat(flake): add a new devshell that includes full dev tools by eveeifyeve · Pull Request #852 · nix-community/nix-init · GitHub
[go: up one dir, main page]

Skip to content

feat(flake): add a new devshell that includes full dev tools - #852

Merged
figsoda merged 1 commit into
nix-community:mainfrom
DigitalBrewStudios:add-rust-devshell
Aug 30, 2026
Merged

figsoda merged 1 commit into
nix-community:mainfrom
DigitalBrewStudios:add-rust-devshell

Conversation

@eveeifyeve
@eveeifyeve eveeifyeve commented Jul 30, 2026 •
Copy link
Copy Markdown
Member

There is annoyance that I commonly run into when developing nix-init and maybe pottentially others, no rust tooling in the devshell AUGH. This pr changes that FINALLY! by adding the fenix latest toolchain to devshell.

/CC @figsoda for review.

Disclaimer: This is sponsered work at DigitalBrewStudios.

@eveeifyeve
eveeifyeve force-pushed the add-rust-devshell branch 2 times, most recently from 4617e67 to 12499f3 Compare July 30, 2026 15:44
@eveeifyeve eveeifyeve changed the title feat(flake): add rustc and cargo to devshell feat(flake): add rust toolchain to devshell Jul 30, 2026
@eveeifyeve
eveeifyeve force-pushed the add-rust-devshell branch 2 times, most recently from e52aec6 to 164e503 Compare July 30, 2026 16:03
@eveeifyeve eveeifyeve mentioned this pull request Jul 30, 2026
@figsoda figsoda left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont really want this in the default shell, can you put this in a separate shell called something like full

@eveeifyeve
eveeifyeve commented Aug 16, 2026 •
Copy link
Copy Markdown
Member Author

i dont really want this in the default shell, can you put this in a separate shell called something like full

Then I will make direnv refer full then. Because preferably I want to see friction reduced for people who are trying to contribute to this project and my own friction when contributing.

@figsoda
figsoda commented Aug 16, 2026 •
Copy link
Copy Markdown
Member

that's fine with me, i dont use the envrc, i think it would be a better idea to gitignore it but honestly im ok with either options here

@eveeifyeve eveeifyeve changed the title feat(flake): add rust toolchain to devshell feat(flake): add a new devshell that includes rust deps Aug 16, 2026
@eveeifyeve eveeifyeve changed the title feat(flake): add a new devshell that includes rust deps feat(flake): add a new devshell that includes full dev tools Aug 16, 2026
@eveeifyeve
eveeifyeve requested a review from figsoda August 16, 2026 22:15
Comment thread flake.nix Resolved
@figsoda figsoda left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will move it into default in a follow up

@figsoda
figsoda merged commit 4708fcf into nix-community:main Aug 30, 2026
3 checks passed
@eveeifyeve
eveeifyeve deleted the add-rust-devshell branch August 30, 2026 16:49
Comment thread flake.nix
'';
};
full = pkgs.mkShell {
imports = [ config.devShells.default ];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eveeifyeve, what does this imports = ...; do? AFAICT, it's totally useless: #877

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought mkshell supports this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it can be fixed by a simple case of inputsFrom

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've read the code and the docs, I see nothing about this. I also tried it, and it doesn't do anything. Am I missing something?

@eveeifyeve eveeifyeve Sep 13, 2026 •
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it is my mistake, huh. I think I meant inputsFrom and probably got confused. Sounds like my shells are broken in prod as well. 😆 Nope, I guess I got I confused this time, I blame flake-parts for that. 😆

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think inputsFrom would work here either. Maybe we'd get the packages, but there's also a shell hook we need.

@eveeifyeve eveeifyeve Sep 13, 2026 •
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think inputsFrom would work here either. Maybe we'd get the packages, but there's also a shell hook we need.

https://github.com/NixOS/nixpkgs/blob/df48ae66ead184b1ebd806bd730438fa5ac29070/pkgs/build-support/mkshell/default.nix#L45?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice! Updated #877 accordingly.

jfly added a commit to jfly/nix-init that referenced this pull request Sep 14, 2026
This `devShells.full` was [added
recently](nix-community#852), and it
just didn't work. Now it does!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0