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

lib/generators: add mkValueString to mkKeyValueDefault generator #31481

Merged
merged 1 commit into from Nov 22, 2017

Conversation

Profpatsch
Copy link
Member

@Profpatsch Profpatsch commented Nov 10, 2017

This means the generation of values can now be influenced, even down from e.g.
an INI generator.
Breaks the interface of mkKeyValueDefault to match its interface to other
generator functions. It might me sensible to rename mkKeyValue and
mkKeyValueSet to conform to the toX-style of generator functions.

  • tested by running lib/tests/misc.nix
  • used new argument in project

This means the generation of values can now be influenced, even down from e.g.
an INI generator.
Breaks the interface of `mkKeyValueDefault` to match its interface to other
generator functions. It might me sensible to rename `mkKeyValue` and
`mkKeyValueSet` to conform to the `toX`-style of generator functions.
@Profpatsch
Copy link
Member Author

Will merge, since it’s such a simple change and nobody reacted.

@Profpatsch Profpatsch merged commit 8e00dcd into NixOS:master Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants