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

simpleFlake: self in overlays / packages #20

Closed
blaggacao opened this issue Jan 6, 2021 · 1 comment
Closed

simpleFlake: self in overlays / packages #20

blaggacao opened this issue Jan 6, 2021 · 1 comment

Comments

@blaggacao
Copy link
Contributor

blaggacao commented Jan 6, 2021

Using simpleFlake, assuming nix build .#release is meant to build a release from source code:

It would be nice to provide access to the flake's self somehow to do src = self when needed.
A global reference to repo root seems somehow a little more flakeonic, than doing src = ../../. (or whatever relpath).

Not sure if possible, though, without altering the signature of the overlay.nix file.

Would also alleviate enforcement of proposal in #15, I guess.

Is it really a problem to break compat with nix-*? For those who need it it could be overlay.nix + overlay.fl.nix (a thin wrapper that does what it can).

@blaggacao
Copy link
Contributor Author

I no longer believe this proposal belongs to the flake-utils layer of the 🧅 .

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