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

Don't use default systems as hight level input / default #41

Closed
blaggacao opened this issue Feb 28, 2022 · 2 comments
Closed

Don't use default systems as hight level input / default #41

blaggacao opened this issue Feb 28, 2022 · 2 comments

Comments

@blaggacao
Copy link
Collaborator

blaggacao commented Feb 28, 2022

This just doesn't correspond to the granularity requirement and not all outputs are derivations.

Push the definition closer to the derivations:

getPlatforms = d: if d?meta && d.meta?platforms
              then d.meta.platforms
              else throw "gotta put systems in place";
    smartPlatforms = lib.attrsets.mapAttrs (system: d:
        lib.filterAttrs (_: v: builtins.any (x: x == system) (getPlatforms v)) d
    );

/cc @tomberek

blaggacao added a commit that referenced this issue Feb 28, 2022
blaggacao added a commit that referenced this issue Feb 28, 2022
blaggacao added a commit that referenced this issue Feb 28, 2022
@blaggacao blaggacao reopened this Feb 28, 2022
@blaggacao
Copy link
Collaborator Author

Here, we have an interpretation of this: https://github.com/divnix/hive/blob/main/pasteurize.nix#L129

@settings settings bot removed api labels Dec 22, 2022
@blaggacao
Copy link
Collaborator Author

Maybe we'll revise this one good day.

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

No branches or pull requests

1 participant