diff --git a/cabal2nix.cabal b/cabal2nix.cabal
--- a/cabal2nix.cabal
+++ b/cabal2nix.cabal
@@ -1,5 +1,5 @@
 Name:                   cabal2nix
-Version:                1.41
+Version:                1.42
 Copyright:              Peter Simons, Andres Loeh
 License:                BSD3
 License-File:           LICENSE
@@ -32,8 +32,8 @@
   .
   The only required argument is the path to the cabal file. For example:
   .
-  > cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.41/cabal2nix.cabal
-  > cabal2nix cabal://cabal2nix-1.41
+  > cabal2nix http://hackage.haskell.org/packages/archive/cabal2nix/1.42/cabal2nix.cabal
+  > cabal2nix cabal://cabal2nix-1.42
   .
   If the @--sha256@ option has not been specified, cabal2nix calls
   @nix-prefetch-url@ to determine the hash automatically. This causes
diff --git a/src/Cabal2Nix/PostProcess.hs b/src/Cabal2Nix/PostProcess.hs
--- a/src/Cabal2Nix/PostProcess.hs
+++ b/src/Cabal2Nix/PostProcess.hs
@@ -25,6 +25,7 @@
   | pname == "happy"            = deriv { buildTools = "perl":buildTools }
   | pname == "haskell-src"      = deriv { buildTools = "happy":buildTools }
   | pname == "haskell-src-meta" = deriv { buildDepends = "uniplate":buildDepends }
+  | pname == "highlighting-kate"= highlightingKatePostProcessing deriv
   | pname == "hmatrix"          = deriv { extraLibs = "gsl":"liblapack":"blas":extraLibs }
   | pname == "idris"            = deriv { buildTools = "happy":buildTools }
   | pname == "language-c-quote" = deriv { buildTools = "alex":"happy":buildTools }
@@ -118,3 +119,9 @@
   , "  mv contrib/darcs_completion $out/etc/bash_completion.d/darcs"
   , "'';"
   ]
+
+highlightingKatePostProcessing :: Derivation -> Derivation
+highlightingKatePostProcessing deriv@(MkDerivation {..}) = deriv
+  { phaseOverrides = "prePatch = \"sed -i -e 's|regex-pcre-builtin|regex-pcre|' highlighting-kate.cabal\";"
+  , buildDepends = "regex-pcre" : filter (/="regex-pcre-builtin") buildDepends
+  }
