Merge pull request #236370 from amarshall/applypatches-nopatches

applyPatches: skip creating additional drv when no patches
This commit is contained in:
Ryan Lahfa 2024-01-13 16:50:34 +01:00 committed by GitHub
commit 41aa423726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;