Commit 0a7fa9fe authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

fetchzip: move extraPostFetch warning down where it is referenced

parent bf3e7097
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -33,10 +33,6 @@
  ...
}@args:

assert
  (extraPostFetch != "")
  -> lib.warn "use 'postFetch' instead of 'extraPostFetch' with 'fetchzip' and 'fetchFromGitHub' or 'fetchFromGitLab'." true;

let
  tmpFilename =
    if extension != null then
@@ -93,7 +89,10 @@ fetchurl (
    )
    + ''
      ${postFetch}
      ${extraPostFetch}
      ${lib.warnIf (extraPostFetch != "")
        "use 'postFetch' instead of 'extraPostFetch' with 'fetchzip' and 'fetchFromGitHub' or 'fetchFromGitLab'."
        extraPostFetch
      }
      chmod 755 "$out"
    '';
    # ^ Remove non-owner write permissions