From 1d7e7748a6c6c58ef3b9554fa2d71c836c14ecf8 Mon Sep 17 00:00:00 2001 From: eljamm Date: Tue, 3 Mar 2026 20:14:25 +0100 Subject: [PATCH] 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" ``` --- pkgs/by-name/ya/yazi/package.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ya/yazi/package.nix b/pkgs/by-name/ya/yazi/package.nix index 2b08089ee729..917605f0bfc6 100644 --- a/pkgs/by-name/ya/yazi/package.nix +++ b/pkgs/by-name/ya/yazi/package.nix @@ -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 ]; }