git.iko.soy/typeable/cabal2nix
on master help sign in
distribution-nixpkgs: pretty-print 'editedCabalFile` only if revision > 0
commitb7dac87007586fcb95e860b7dc91541032370ac9 authorPeter Simons <simons@cryp.to> dateFri 18 Sep 2015, 12:30 (11 years ago) parente9bf1db
1 file changed+1−1
distribution-nixpkgs/src/Distribution/Nixpkgs/Haskell/Derivation.hs+1−1
distribution-nixpkgs/src/Distribution/Nixpkgs/Haskell/Derivation.hs+1−1
@@ -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