Unverified Commit 41aa4237 authored by Ryan Lahfa's avatar Ryan Lahfa Committed by GitHub
Browse files

Merge pull request #236370 from amarshall/applypatches-nopatches

applyPatches: skip creating additional drv when no patches
parents b2b494ab 52c27352
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -946,7 +946,10 @@ rec {
    , patches ? [ ]
    , postPatch ? ""
    , ...
    }@args: stdenvNoCC.mkDerivation
    }@args:
    if patches == [ ] && postPatch == ""
    then src # nothing to do, so use original src to avoid additional drv
    else stdenvNoCC.mkDerivation
      {
        inherit name src patches postPatch;
        preferLocalBuild = true;