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

How to add support to preexisting flake? #570

Closed
yajo opened this issue Jul 10, 2023 · 1 comment
Closed

How to add support to preexisting flake? #570

yajo opened this issue Jul 10, 2023 · 1 comment
Labels
wontfix This will not be worked on

Comments

@yajo
Copy link
Contributor

yajo commented Jul 10, 2023

The docs tell how to use the makeFlakeOutputs function:

dream2nix/README.md

Lines 74 to 86 in 3772175

Minimal Example `flake.nix`:
```nix
{
inputs.dream2nix.url = "github:nix-community/dream2nix";
outputs = { self, dream2nix }:
dream2nix.lib.makeFlakeOutputs {
systems = ["x86_64-linux"];
config.projectRoot = ./.;
source = ./.;
projects = ./projects.toml;
};
}
```

However, what happens if I already have a flake and I just want to add some of the d2n features I need? How can I add support for detect-projects or resolveImpure while still keeping all the rest of my flake untouched?

Currently it seems like d2n tries to replace all the flakes interface with its own function, instead of living along with it if you already are using flakes...

@DavHau
Copy link
Member

DavHau commented Jul 10, 2023

Exporting flakes was a bad design choice, and will be fixed once v1 API is released.

Closing this as won't fix

@DavHau DavHau closed this as completed Jul 10, 2023
@DavHau DavHau added the wontfix This will not be worked on label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants