Skip to content
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

fix mkShellNoCC to use packages instead of buildInputs #1020

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

willbush
Copy link
Member

According to:

The `packages` attribute argument to `mkShellNoCC` is simply an alias for `nativeBuildInputs`.

The packages attribute argument to mkShellNoCC is simply an alias for nativeBuildInputs.

I believe #131 can be closed now. I think this is one of the last remaining instances where mkShell* uses buildInputs.

According to:
https://github.com/NixOS/nix.dev/blob/cdd059f7e5627b68a137d4de3ea98ab100bdb5a9/source/tutorials/first-steps/declarative-shell.md?plain=1#L84

>The `packages` attribute argument to `mkShellNoCC` is simply an alias for `nativeBuildInputs`.

I believe NixOS#131 can be closed now. I think
this is one of the last remaining instances where mkShell* uses `buildInputs`.
@willbush willbush requested a review from a team as a code owner July 14, 2024 08:54
Copy link

@hsjobeki hsjobeki left a comment

Choose a reason for hiding this comment

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

lgtm.

Imagine we have actual api documentation. We'd instead link to https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-mkShell. Explain the concept here, link to the function interface documentation.

@hsjobeki hsjobeki merged commit d0c9ed4 into NixOS:master Jul 14, 2024
5 checks passed
@willbush willbush deleted the bugfix/nix-language-build-inputs branch July 14, 2024 22:18
@willbush
Copy link
Member Author

@hsjobeki can #131 be closed?

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.

2 participants