Commit 1d7e7748 authored by eljamm's avatar eljamm
Browse files

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"
```
parent 0e962b83
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -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 ];
  }