Commit 45aa145c authored by 7c6f434c's avatar 7c6f434c
Browse files

applyPatches: fix the check for src.meta

If finalAttrs.src.meta is used, then its presence and not src.meta should be the condition
parent f0eb9725
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1045,7 +1045,7 @@ rec {
        passthru = extraPassthru // finalAttrs.src.passthru or { };

        # Carry (and merge) information from the underlying `src` if present.
        meta = lib.optionalAttrs (src ? meta) (removeAttrs finalAttrs.src.meta [ "position" ]);
        meta = lib.optionalAttrs (finalAttrs.src ? meta) (removeAttrs finalAttrs.src.meta [ "position" ]);
      };
  };