mkDerivation: makeDerivationExtensible: only trigger the version-overridden warning when src presented (#462643)

This commit is contained in:
Philip Taron
2025-11-18 14:21:24 +00:00
committed by GitHub
+2 -1
View File
@@ -99,7 +99,8 @@ let
prev = f final;
thisOverlay = overlay final prev;
warnForBadVersionOverride = (
thisOverlay ? version
prev ? src
&& thisOverlay ? version
&& prev ? version
# We could check that the version is actually distinct, but that
# would probably just delay the inevitable, or preserve tech debt.