mirror of
https://github.com/NixOS/rfcs.git
synced 2025-11-09 12:06:11 +01:00
Slightly rewrite RFC 0123
This commit is contained in:
parent
7811f0edf2
commit
d8c2e19ca1
1 changed files with 11 additions and 8 deletions
|
|
@ -18,8 +18,8 @@ The store paths corresponding to a flake source are no longer called `source`, b
|
||||||
# Motivation
|
# Motivation
|
||||||
[motivation]: #motivation
|
[motivation]: #motivation
|
||||||
|
|
||||||
Flake-centric workflows often end up with a lot of derivations named “source”, and it’s difficult to navigate this.
|
- Flake-centric workflows often end up with a lot of derivations named “source”, and it’s difficult to navigate this.
|
||||||
This can also make flake-centric commands friendlier and easier to approach.
|
- This metadata can be used to make flakes more discoverable and usable, in particular, it can be output instead or with the URI, making the command friendlier.
|
||||||
|
|
||||||
# Detailed design
|
# Detailed design
|
||||||
[design]: #detailed-design
|
[design]: #detailed-design
|
||||||
|
|
@ -68,21 +68,24 @@ example (git+file:///home/anselmschueler/Code/example?rev=b0&rev=c714c8624f5d49a
|
||||||
# Drawbacks
|
# Drawbacks
|
||||||
[drawbacks]: #drawbacks
|
[drawbacks]: #drawbacks
|
||||||
|
|
||||||
This may cause clutter and additional maintenance.
|
- This may cause clutter and additional maintenance.
|
||||||
Since this changes the output of nix flake metadata and nix flake show, it might cause scripts that read this output to break.
|
- Since this changes the output of nix flake metadata and nix flake show, it might cause scripts that read this output to break.
|
||||||
|
- This requires a significant change to the way flakes are handled.
|
||||||
|
- This treats the Nix store as a user-facing part of Nix, which is generally not intended.
|
||||||
|
|
||||||
# Alternatives
|
# Alternatives
|
||||||
[alternatives]: #alternatives
|
[alternatives]: #alternatives
|
||||||
|
|
||||||
Flake names could be handled entirely through outside means, with things like the global registry merely pointing to flakes under names.
|
- Flake names could be handled entirely through outside means, with things like the global registry merely pointing to flakes under names.
|
||||||
|
|
||||||
# Unresolved questions
|
# Unresolved questions
|
||||||
[unresolved]: #unresolved-questions
|
[unresolved]: #unresolved-questions
|
||||||
|
|
||||||
The name scheme could be changed. `flake-source-${name}` could be too long. Alternatives include `source-${name}`.
|
- The name scheme could be changed. `flake-source-${name}` could be too long. Alternatives include `source-${name}`.
|
||||||
The interactions with nix flake metadata and nix flake show are not critical to the design, which is mostly aimed at clarifying derivation names.
|
- The interactions with nix flake metadata and nix flake show are not critical to the design, which is mostly aimed at clarifying derivation names.
|
||||||
|
|
||||||
# Future work
|
# Future work
|
||||||
[future]: #future-work
|
[future]: #future-work
|
||||||
|
|
||||||
Flake usability can be improved.
|
- Flake usability can be improved.
|
||||||
|
- Issues with indicipherable derivations named “source” also exist elsewhere.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue