Unverified Commit c07cb1be authored by Jeremy Fleischman's avatar Jeremy Fleischman
Browse files

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.
parent 646c4ab8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -50,4 +50,8 @@ buildEnv {
        }"
    done
  '';

  meta = {
    inherit (kodi.meta) mainProgram;
  };
}