@@ -102,7 +102,7 @@ instance Pretty Derivation where
102102 , attr "version" $ doubleQuotes $ disp (packageVersion _pkgid)
103103 , sourceAttr _src
104104 , onlyIf (_revision > 0) $ attr "revision" $ doubleQuotes $ int _revision
105− , onlyIf (not (null _editedCabalFile)) $ attr "editedCabalFile" $ string _editedCabalFile
105+ , onlyIf (not (null _editedCabalFile) && _revision > 0) $ attr "editedCabalFile" $ string _editedCabalFile
106106 , listattr "configureFlags" empty (map (show . show) renderedFlags)
107107 , boolattr "isLibrary" (not _isLibrary || _isExecutable) _isLibrary
108108 , boolattr "isExecutable" (not _isLibrary || _isExecutable) _isExecutable