fix build

This commit is contained in:
Ryan Mulligan 2018-10-23 20:36:14 -07:00
parent 86cb0b63be
commit 697a33ee1b

View File

@ -195,8 +195,10 @@ updatePackage log updateEnv mergeBaseOutpathsContext = do
let opDiff = S.difference mergeBaseOutpathSet editedOutpathSet let opDiff = S.difference mergeBaseOutpathSet editedOutpathSet
let numPRebuilds = numPackageRebuilds opDiff let numPRebuilds = numPackageRebuilds opDiff
log $ "num package rebuilds: " <> (T.pack . show) numPRebuilds <> " > 10"
if numPRebuilds > 10 && "buildPythonPackage" `T.isInfixOf` derivationContents if numPRebuilds > 10 && "buildPythonPackage" `T.isInfixOf` derivationContents
then errorExit "Package contained buildPythonPackage and too many package rebuilds " <> numPRebuilds <> " > 10" then errorExit "Package contained buildPythonPackage and too many package rebuilds"
else return () else return ()
eitherToError errorExit (Nix.build attrPath) eitherToError errorExit (Nix.build attrPath)