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

flake-parts: input only transpositions? #6

Open
github-actions bot opened this issue Dec 7, 2024 · 1 comment
Open

flake-parts: input only transpositions? #6

github-actions bot opened this issue Dec 7, 2024 · 1 comment
Assignees

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2024

# TODO: flake-parts: input only transpositions?

{
  # mkWindowsApp from erosanix uses a system parameterized lib?
  # would be nice to do:
  #   `transposition.lib.noOutput = true;`
  # TODO: flake-parts: input only transpositions?
  perInput = system: flake: {
    lib = flake.lib.${system};
  };

  perSystem =
    { inputs', ... }:
    {
      jix.overlays = [
        (final: prev: {
          bluetooth-connect = final.callPackage ./bluetooth-connect.nix { };

          inherit (inputs'.erosanix.lib) mkWindowsApp;
          xgpro = final.callPackage ./xgpro.nix { };
        })
      ];
    };
}
@ttrssreal
Copy link
Owner

ttrssreal commented Dec 7, 2024

transposition.lib = {}

This does transpose inputs'.foo.${system}.lib into inputs'.foo.lib but also sets the flake.lib output as well D:

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