mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
kodi: inherit underlying kodi's meta when wrapping
kodi has a mainProgram:
```
nix-repl> kodi.meta.mainProgram
"kodi"
```
But when wrapping it, we'd lose its mainProgram:
```
nix-repl> (kodi.withPackages (_: [])).meta.mainProgram
error:
… while evaluating the attribute 'meta.mainProgram'
...
error: attribute 'mainProgram' missing
at «string»:1:1:
1| (kodi.withPackages (_: [])).meta.mainProgram
| ^
```
This fixes that. Please let me know if there's a better pattern
to follow for inheriting meta information when wrapping. I intentionally
didn't inherit the full `meta` attribute as it has some other
information (such as `position`) that I think are better *not*
inherited.
This commit is contained in:
@@ -50,4 +50,8 @@ buildEnv {
|
||||
}"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (kodi.meta) mainProgram;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user