@@ -80,6 +80,7 @@ renderDerivation (MkDerivation {..}) =
80 , nest 2 $ vcat
80 , nest 2 $ vcat
81 [ attr "pname" $ string pname
81 [ attr "pname" $ string pname
82 , attr "version" $ doubleQuotes (disp version)
82 , attr "version" $ doubleQuotes (disp version)
83+ , onlyIf (revision > 0) $ attr "revision" $ doubleQuotes (int revision)
83 , sourceAttr src
84 , sourceAttr src
84 , onlyIf (not (null editedCabalFile)) $ attr "editedCabalFile" $ string editedCabalFile
85 , onlyIf (not (null editedCabalFile)) $ attr "editedCabalFile" $ string editedCabalFile
85 , boolattr "isLibrary" (not isLibrary || isExecutable) isLibrary
86 , boolattr "isLibrary" (not isLibrary || isExecutable) isLibrary