Unverified Commit 615dc0dc authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

applyPatches: unbreak support for path-like sources (#405148)

parents 1f929865 59d39f10
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -1031,12 +1031,14 @@ rec {
      let
        keepAttrs = names: lib.filterAttrs (name: val: lib.elem name names);
        # enables tools like nix-update to determine what src attributes to replace
        extraPassthru = keepAttrs [
        extraPassthru = lib.optionalAttrs (lib.isAttrs src) (
          keepAttrs [
            "rev"
            "tag"
            "url"
            "outputHash"
        ] src;
          ] src
        );
      in
      stdenvNoCC.mkDerivation (
        {