mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
Merge pull request #236370 from amarshall/applypatches-nopatches
applyPatches: skip creating additional drv when no patches
This commit is contained in:
commit
41aa423726
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user