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

Feature request: metadata passthrough / more type support #40

Open
danielphan2003 opened this issue Dec 20, 2021 · 1 comment
Open

Feature request: metadata passthrough / more type support #40

danielphan2003 opened this issue Dec 20, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@danielphan2003
Copy link

As my nixpkgs grows bigger, I plan to also generate metadata for each of the packages I defined. Using passthru in sources.toml isn't very helpful because it assume whatever value that it takes is a string, thus preventing greater control of the generated nix expr. I suppose a separate meta attribute would suffice (including more type support).

Maybe Nix could also be used interchangeably with toml? Though I would be fine if I can just evaluate Nix into toml and use that instead.

@danielphan2003 danielphan2003 changed the title Feature support: metadata passthrough / more type support Feature request: metadata passthrough / more type support Dec 20, 2021
@berberman
Copy link
Owner

I also considered about this question. Currently we use string interpolation to generate nix expr, which is not neat and error-prone. If we could create the expression programmatically, i.e. constructing and pretty printing the AST, it won't be hard to transpile toml to according nix expression.

@berberman berberman added the enhancement New feature or request label Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants