patch logic

This commit is contained in:
Joel Taylor
2014-10-27 21:55:10 +00:00
committed by Charles Strahan
parent 9c8c4c8655
commit 4a5e725a00
+1 -1
View File
@@ -26,7 +26,7 @@ self = rec {
builtGems = self // (lib.mapAttrs (gem: deriv:
if patches ? "${gem}"
then lib.overrideDerivation deriv (oldAttrs:
if oldAttrs ? dontPatch && oldAttrs.dontPatch == 1 then {}
if oldAttrs ? dontPatch && !(oldAttrs.dontPatch == false || oldAttrs.dontPatch == null) then {}
else patches."${gem}")
else deriv) preBuilt);
in builtGems;