yazi: get correct position by inheriting meta attrs

Inheriting `yazi-unwrapped`'s meta means we also inherit its position,
which is not correct and could lead to confusions (e.g. in the NixOS
search).

Instead, we should inherit the individual attributes, thus giving us the
corrrect position.

```
# before
nix-repl> yazi.meta.position
"/path/to/nixpkgs/pkgs/by-name/ya/yazi-unwrapped/package.nix:63"
```

```
# after
nix-repl> yazi.meta.position
"/path/to/nixpkgs/pkgs/by-name/ya/yazi/package.nix:100"
```
This commit is contained in:
eljamm
2026-03-03 20:32:35 +01:00
parent 0e962b837c
commit 1d7e7748a6
+11 -1
View File
@@ -93,7 +93,17 @@ let
in
runCommand yazi-unwrapped.name
{
inherit (yazi-unwrapped) pname version meta;
inherit (yazi-unwrapped) pname version;
meta = {
inherit (yazi-unwrapped.meta)
description
homepage
license
maintainers
mainProgram
;
};
nativeBuildInputs = [ makeWrapper ];
}