-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
literalExample -> literalExpression #2371
Conversation
Thanks for the PR and the heads up. This will be an issue when we merge it since some people mix HM master with a stable version of Nixpkgs. In either case we should create a new issue ahead of the merge. |
I don't think that should be supported: the master branch follows nixos-unstable, release branches follow release branches. |
It's not supported at all but we still have to help users when issues arise. |
Right, a pinned issue is probably a good idea |
I would suggest changing Nixpkgs to have |
About compatibility I think that instead of switching to
|
Can do, but I'd rather add it as As @berbiche pointed out on Matrix, a better long-term solution might be to use a pinned version of nixpkgs for the lib while still using the user-supplied nixpkgs for packages. |
If it's possible to add as I think using a pinned Nixpkgs would be good if we only used We could conceivably leave |
8422cf5
to
2d1bff4
Compare
NixOS/nixpkgs#136909 is in nixos-unstable, I have confirmed that this PR passes all the tests and works fine both before and after NixOS/nixpkgs#136909. As far as I'm concerned it's ready to merge. |
We could wait for: NixOS/nixpkgs#141099 |
Doesn't bdf8e92 make that useless in our case? |
Added an update of nmd to the latest master: https://gitlab.com/rycee/nmd/-/compare/2398aa79ab12aa7aba14bc3b08a6efd38ebabdc5...12bc57594e12525d2e4422fa7034b2d54e9ea09a |
596e197
to
a2fb4d1
Compare
Instead use the new function `literalExpression`. See NixOS/nixpkgs#136909
a2fb4d1
to
bd11e2c
Compare
Thanks! Merged to master now. |
NixOS/nixpkgs#136909 renamed
literalExample
toliteralExpression
and deprecatedliteralExample
, so this PR brings home-manager up to speed.This PR probably shouldn't be merged before NixOS/nixpkgs#136909 lands in nixos-unstable (https://nixpk.gs/pr-tracker.html?pr=136909) so that people have a chance to upgrade (and before the tests pass, in any case).
I intend to make a follow-up PR fixing issues with default and example values in the same spirit as NixOS/nixpkgs#136909, but this one should be easy to review.
See also https://gitlab.com/rycee/nmd/-/merge_requests/3
Checklist
Change is backwards compatible.
Code formatted with
./format
.Code tested through
nix-shell --pure tests -A run.all
.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Added myself as module maintainer. See example.
Added myself and the module files to
.github/CODEOWNERS
.