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
flakes: rename devShell to developPackages #3833
Conversation
22331d8
to
ddb63cd
Compare
flake.nix
Outdated
@@ -414,7 +414,7 @@ | |||
|
|||
defaultPackage = forAllSystems (system: self.packages.${system}.nix); | |||
|
|||
devShell = forAllSystems (system: | |||
developPackages = forAllSystems (system: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
developPackages = forAllSystems (system: | |
developPackage = forAllSystems (system: |
This should be singular as there is a single value per system available.
src/nix/flake.cc
Outdated
else if (name == "defaultPackage" || name == "devShell") { | ||
else if (name == "defaultPackage" || name == "developPackages" || name == "devShell") { | ||
if (name == "devShell") { | ||
warn("flake output 'devShell' is deprecated. Use by 'developPackages' instead"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warn("flake output 'devShell' is deprecated. Use by 'developPackages' instead"); | |
warn("flake output 'devShell' is deprecated. Use 'developPackages' instead"); |
While
Maybe we want something like |
I think that's a rather long name. Non native English speaker could have a problem spelling that. |
I don't think so, both words are quite common in IT/English. Someone who has trouble spelling this out will have problems understanding the nix manual in the first place. |
Actually, we are making the same mistake again and conflating the various use-cases, just like
Then there is another use-case, which is to create a development environment for a repository. This is related but not entirely the same thing. Usually, in my experience, the development doesn't care about making build phases available to the user. The main facility is to bring the compilers, interpreters, linting tools, ... and add them to the PATH. Then there might be some other environment variable being set, but those are development specific (instead of package-specific). For that reason, I would propose to deprecate |
What would this look like? Is |
I totally agree with @zimbatm the help text of There is also a ambiguity on the
What's the difference? Since we agree it's not the same. In my opinion, nix has strong use cases beyond the well-contextualized nix community. So |
> > Maybe we want something like `developmentEnvironment`?
>
> I think that's a rather long name. Non native English speaker could have a problem spelling that.
I don't think so, both words are quite common in IT/English. Someone who has trouble spelling this out will have problems understanding the nix manual in the first place.
Well, being comfortable with typing an un-spell-checkable combination of two long words and being comfortable reading long-form texts might be correlated but are distinct things
|
I'm not following, why would
Let's not deprecate things until we have something beter. Hopefully
There is no perfect terminology but |
Totally agree! I just was giving the code priority when interpreting, see: That description ought to be fixed then so it's crystal clear to the world:
|
So should I just rename it to |
Maybe the |
This sounds more like a different PR to add documentation to |
The cli was changed but not the flake format, which makes it consistent for the user that the both are linked together.
I think the problem here is what people put in |
I was pondering on the two use cases a little during the last days, with no constraints or holy cows. This is where my mind drifted towards: https://discourse.nixos.org/t/entice-the-developer/8310 |
I think I'd rather keep |
The cli was changed but not the flake format.
It's not clear to a user that both names belong together.