From c07cb1bed4d6eaa904601dabdf0b6bee474fefb0 Mon Sep 17 00:00:00 2001 From: Jeremy Fleischman Date: Sun, 15 Mar 2026 19:04:50 -0700 Subject: [PATCH] kodi: inherit underlying kodi's `meta` when wrapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- pkgs/applications/video/kodi/wrapper.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/video/kodi/wrapper.nix b/pkgs/applications/video/kodi/wrapper.nix index f1c4393e01b8..84bfeb469d5c 100644 --- a/pkgs/applications/video/kodi/wrapper.nix +++ b/pkgs/applications/video/kodi/wrapper.nix @@ -50,4 +50,8 @@ buildEnv { }" done ''; + + meta = { + inherit (kodi.meta) mainProgram; + }; }