diff --git a/cblrepo.cabal b/cblrepo.cabal
--- a/cblrepo.cabal
+++ b/cblrepo.cabal
@@ -1,5 +1,5 @@
 name: cblrepo
-version: 0.3.0
+version: 0.3.1
 cabal-version: >= 1.6
 license: OtherLicense
 license-file: LICENSE-2.0
diff --git a/src/Util/Translation.hs b/src/Util/Translation.hs
--- a/src/Util/Translation.hs
+++ b/src/Util/Translation.hs
@@ -182,6 +182,9 @@
 
                 exeBuildFunction = text "build() {" <>
                     nest 4 (empty <$> text "cd ${srcdir}/${_hkgname}-${pkgver}" <$>
+                        maybe empty (\ _ ->
+                            text $ "patch " ++ shVarValue hkgName ++ ".cabal ${srcdir}/cabal.patch ")
+                            cabalPatchFile <$>
                         text "runhaskell Setup configure -O --prefix=/usr --docdir=/usr/share/doc/${pkgname}" <$>
                         text "runhaskell Setup build"
                         ) <$>
