Commit 59d39f10 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

applyPatches: unbreak support for path-like sources

parent 4e98cd6b
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 (
        {