summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2020-04-12 07:03:27 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2020-04-12 07:04:35 -0400
commit5384d7288522cd44ba5e766a29576426a219b400 (patch)
treed51c1338e7622297dfaeb3f75e4808f43b35e353
parent11e0f5993b1caa28b9e1b8c3508c63e611214b43 (diff)
setup.sh: add dontPatch
Fixes #85038
-rw-r--r--doc/stdenv/stdenv.xml10
-rw-r--r--pkgs/stdenv/generic/setup.sh1
2 files changed, 11 insertions, 0 deletions
diff --git a/doc/stdenv/stdenv.xml b/doc/stdenv/stdenv.xml
index 1e97bf6157bb..78e71b032d7d 100644
--- a/doc/stdenv/stdenv.xml
+++ b/doc/stdenv/stdenv.xml
@@ -729,6 +729,16 @@ passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ]
<title>Variables controlling the patch phase</title>
<varlistentry>
<term>
+ <varname>dontPatch</varname>
+ </term>
+ <listitem>
+ <para>
+ Set to true to skip the patch phase.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
<varname>patches</varname>
</term>
<listitem>
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh
index ad52c8e5a7c9..839757945a2b 100644
--- a/pkgs/stdenv/generic/setup.sh
+++ b/pkgs/stdenv/generic/setup.sh
@@ -1266,6 +1266,7 @@ genericBuild() {
for curPhase in $phases; do
if [[ "$curPhase" = unpackPhase && -n "${dontUnpack:-}" ]]; then continue; fi
+ if [[ "$curPhase" = patchPhase && -n "${dontPatch:-}" ]]; then continue; fi
if [[ "$curPhase" = configurePhase && -n "${dontConfigure:-}" ]]; then continue; fi
if [[ "$curPhase" = buildPhase && -n "${dontBuild:-}" ]]; then continue; fi
if [[ "$curPhase" = checkPhase && -z "${doCheck:-}" ]]; then continue; fi