{ compiler ? "ghc884" , pkgs }: let inherit (pkgs.lib.trivial) flip pipe; inherit (pkgs.haskell.lib) appendPatch appendConfigureFlags dontCheck; hakyllFlags = [ "-f" "watchServer" "-f" "previewServer" ]; haskellPackages = pkgs.haskell.packages.${compiler}.override { overrides = hpNew: hpOld: { hakyll = pipe hpOld.hakyll [ (flip appendPatch ./hakyll.patch) (flip appendConfigureFlags hakyllFlags) ]; my-site = hpNew.callCabal2nix "my-site" ./. {}; # because hakyll is marked as broken in nixpkgs hslua = dontCheck (hpNew.callHackage "hslua" "1.0.3.2" {}); jira-wiki-markup = dontCheck (hpNew.callHackage "jira-wiki-markup" "1.1.4" {}); pandoc = dontCheck (hpNew.callHackage "pandoc" "2.9.2.1" {}); pandoc-types = dontCheck (hpNew.callHackage "pandoc-types" "1.20" {}); }; }; in haskellPackages