mirror of
https://github.com/NixOS/rfcs.git
synced 2025-12-21 00:11:20 +01:00
Rename wrappersInfo -> combineWrappersInfo
This commit is contained in:
parent
73421fdb49
commit
f0c253398d
1 changed files with 6 additions and 6 deletions
|
|
@ -274,7 +274,7 @@ Most of the work to do will be:
|
||||||
package, and edit these derivations to include a `wrappers.json` in them.
|
package, and edit these derivations to include a `wrappers.json` in them.
|
||||||
This should be done with `makeWrapperAuto` as well, see (2).
|
This should be done with `makeWrapperAuto` as well, see (2).
|
||||||
2. Design the `makeWrapperAuto` shell hook:
|
2. Design the `makeWrapperAuto` shell hook:
|
||||||
- It should introduce a shell function (to be called `wrappersInfo`) that
|
- It should introduce a shell function (to be called `combineWrappersInfo`) that
|
||||||
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.
|
||||||
|
|
@ -301,11 +301,11 @@ Most of the work to do will be:
|
||||||
|
|
||||||
When switching to `makeWrapperAuto` from `makeWrapper` there shouldn't be
|
When switching to `makeWrapperAuto` from `makeWrapper` there shouldn't be
|
||||||
manual usage of `wrapProgram` for most cases. A package that uses `wrapProgram`
|
manual usage of `wrapProgram` for most cases. A package that uses `wrapProgram`
|
||||||
should be able to switch to `wrappersInfo` and declare any nontrivial
|
should be able to switch to `combineWrappersInfo` and declare any nontrivial
|
||||||
environment variables with it to get propagated to reverse dependencies and to
|
environment variables with it to get propagated to reverse dependencies and to
|
||||||
it's executables automatically.
|
it's executables automatically.
|
||||||
|
|
||||||
Currently I imagine the usage of `wrappersInfo` (the name can be debated) as
|
Currently I imagine the usage of `combineWrappersInfo` (the name can be debated) as
|
||||||
so:
|
so:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
|
|
@ -313,11 +313,11 @@ so:
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
echo "${builtins.toJSON {
|
echo "${builtins.toJSON {
|
||||||
GST_PLUGIN_SYSTEM_PATH_1_0 = [
|
GST_PLUGIN_SYSTEM_PATH_1_0 = [
|
||||||
# @out@ should be expanded by `wrappersInfo` to what's in `$out`, see:
|
# @out@ should be expanded by `combineWrappersInfo` to what's in `$out`, see:
|
||||||
# https://github.com/NixOS/nixpkgs/pull/85103#issuecomment-613071343
|
# https://github.com/NixOS/nixpkgs/pull/85103#issuecomment-613071343
|
||||||
"@out@/lib/gstreamer-1.0"
|
"@out@/lib/gstreamer-1.0"
|
||||||
];
|
];
|
||||||
}}" | wrappersInfo
|
}}" | combineWrappersInfo
|
||||||
'';
|
'';
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -341,7 +341,7 @@ And often seen in Python + Qt programs:
|
||||||
# Drawbacks
|
# Drawbacks
|
||||||
[drawbacks]: #drawbacks
|
[drawbacks]: #drawbacks
|
||||||
|
|
||||||
Using `wrapProgram` will be simpler then using `wrappersInfo` and it might be
|
Using `wrapProgram` will be simpler then using `combineWrappersInfo` and it might be
|
||||||
hard to explain why is there no `wrapProgramAuto`. However, this interface
|
hard to explain why is there no `wrapProgramAuto`. However, this interface
|
||||||
might get improved in design through this RFC or in the future and in any case
|
might get improved in design through this RFC or in the future and in any case
|
||||||
proper documentation should help.
|
proper documentation should help.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue