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

The attribute "type" has special meaning in Nix #163

Open
peti opened this issue Apr 16, 2015 · 3 comments
Open

The attribute "type" has special meaning in Nix #163

peti opened this issue Apr 16, 2015 · 3 comments
Labels

Comments

@peti
Copy link
Member

peti commented Apr 16, 2015

Hackage contains a package called type. We cannot easily generate an attribute for that package, however, because type has a special meaning for Nix and it will be evaluated eagerly on some occasions (i.e. when the package set is traversed). I don't fully understand the details yet. For the time being, no expression is generated for type.

@peti peti added the bug label Apr 16, 2015
@shlevy
Copy link
Member

shlevy commented Apr 16, 2015

@3noch
Copy link

3noch commented Oct 28, 2016

Couldn't it use "type" as the attribute name? { "type" = ... }

@peti
Copy link
Member Author

peti commented Dec 18, 2016

Related to #164. Both issues come down to the question of how to represent names that are not valid identifiers in Nix. type is slightly different, because it's a valid identifier, but it has a special meaning for Nix which means we cannot use the attribute, really.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants