mirror of
https://github.com/NixOS/rfcs.git
synced 2025-12-20 07:51:18 +01:00
Apply suggestions by @lheckermann
Co-authored-by: Linus Heckemann <git@sphalerite.org>
This commit is contained in:
parent
48f9118536
commit
73421fdb49
1 changed files with 6 additions and 7 deletions
|
|
@ -256,8 +256,8 @@ a given package:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The information found inside an input's `wrappers.json` will include all the
|
The information found inside an input's `wrappers.json` will specify the
|
||||||
information about wrappers found in the input's inputs, and so on. Thus in
|
wrapper information not only for itself, but for all its dependencies (including transitives) as well. Thus, in
|
||||||
contrast to the [POC Nixpkgs PR](https://github.com/NixOS/nixpkgs/pull/85103)
|
contrast to the [POC Nixpkgs PR](https://github.com/NixOS/nixpkgs/pull/85103)
|
||||||
and the [original design of the
|
and the [original design of the
|
||||||
RFC](https://github.com/doronbehar/rfcs/blob/60d3825fdd4e6574b7e5d70264445d1c801368c6/rfcs/0075-declarative-wrappers.md#L251),
|
RFC](https://github.com/doronbehar/rfcs/blob/60d3825fdd4e6574b7e5d70264445d1c801368c6/rfcs/0075-declarative-wrappers.md#L251),
|
||||||
|
|
@ -265,9 +265,8 @@ prior to [the 1st
|
||||||
meeting](https://github.com/NixOS/rfcs/pull/75#issuecomment-760942876),
|
meeting](https://github.com/NixOS/rfcs/pull/75#issuecomment-760942876),
|
||||||
traversing all the inputs and the inputs' inputs, will not happen during eval
|
traversing all the inputs and the inputs' inputs, will not happen during eval
|
||||||
time and only partly, during build time - every package already built will
|
time and only partly, during build time - every package already built will
|
||||||
provide it's reverse dependencies all the information they need about
|
provide its reverse dependencies all the information they need about
|
||||||
environment variables of itself and of all of it's inputs and it's inputs'
|
environment variables.
|
||||||
inputs.
|
|
||||||
|
|
||||||
Most of the work to do will be:
|
Most of the work to do will be:
|
||||||
|
|
||||||
|
|
@ -279,10 +278,10 @@ Most of the work to do will be:
|
||||||
will allow piping a JSON string from `builtins.toJSON` and spit a
|
will allow piping a JSON string from `builtins.toJSON` and spit a
|
||||||
`wrappers.json` that will include both what was piped into it, and the
|
`wrappers.json` that will include both what was piped into it, and the
|
||||||
content from the package's various inputs' `wrappers.json` files.
|
content from the package's various inputs' `wrappers.json` files.
|
||||||
- It should make the executables in `$out/bin/` get wrapped according to
|
- It should wrap the executables in `$out/bin/` according to
|
||||||
what's currently in this package's `wrappers.json`, during `fixupPhase`.
|
what's currently in this package's `wrappers.json`, during `fixupPhase`.
|
||||||
- The above should be also possible to do manually for executables outside
|
- The above should be also possible to do manually for executables outside
|
||||||
`$out/bin/` with say adding to a derivation a Nix variable:
|
`$out/bin/` by setting `wrapExtraPrograms` on the derivation:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
wrapExtraPrograms = [ "/libexec/" "/share/scripts" ];
|
wrapExtraPrograms = [ "/libexec/" "/share/scripts" ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue