diff --git a/pkgs/development/libraries/haskell/ghcjs-dom/default.nix b/pkgs/development/libraries/haskell/ghcjs-dom/default.nix
index 1c94d088959..d6333b867b4 100644
--- a/pkgs/development/libraries/haskell/ghcjs-dom/default.nix
+++ b/pkgs/development/libraries/haskell/ghcjs-dom/default.nix
@@ -1,15 +1,12 @@
-{ cabal, fetchgit, ghc, mtl
-, buildType ? if ghc.ghc.pname or null == "ghcjs" then "jsffi" else "webkit"
-, ghcjsBase ? null # jsffi dependencies
-, glib ? null, transformers ? null, gtk ? null, webkit ? null # webkit dependencies
-}:
+# This file was auto-generated by cabal2nix. Please do NOT edit manually!
+
+{ cabal, ghcjsBase, mtl, text, fetchgit }:
 
 cabal.mkDerivation (self: {
   pname = "ghcjs-dom";
   version = "0.1.1.3";
   sha256 = "0pdxb2s7fflrh8sbqakv0qi13jkn3d0yc32xhg2944yfjg5fvlly";
-  buildDepends = [ mtl ] ++ (if buildType == "jsffi" then [ ghcjsBase ] else if buildType == "webkit" then [ glib transformers gtk webkit ] else throw "unrecognized buildType");
-  configureFlags = if buildType == "jsffi" then [ ] else if buildType == "webkit" then [ "-f-ghcjs" "-fwebkit" "-f-gtk3" ] else throw "unrecognized buildType";
+  buildDepends = [ ghcjsBase mtl text ];
   meta = {
     description = "DOM library that supports both GHCJS and WebKitGTK";
     license = self.stdenv.lib.licenses.mit;